Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

feat(ci): create GitHub release workflow #121

Closed

Conversation

johnsonshi
Copy link
Contributor

@johnsonshi johnsonshi commented Jan 3, 2022

Creates GitHub release workflow and build-cross dist Makefile target

Resolves #109

Signed-off-by: Johnson Shi [email protected]

@johnsonshi johnsonshi requested review from draychev and jaellio January 3, 2022 17:19
@johnsonshi johnsonshi force-pushed the create-gh-release-workflow branch from ce8d1cd to 30511f2 Compare January 3, 2022 18:26
@johnsonshi
Copy link
Contributor Author

Builds binaries in top-level ./_dist directory.

~/dev/osm-health$ ls _dist/**
_dist/darwin-amd64:
osm-health

_dist/linux-amd64:
osm-health

_dist/windows-amd64:
osm-health.exe

Linux testing:

~/dev/osm-health$ ./_dist/linux-amd64/osm-health
10:30AM INF osm-health version: dev; 9ac94e4a93ab1e3d59710c3f46fd0b6adf8f0898; 2022-01-03 file=main.go:65 module=main
The osm-health cli enables you to
        (1) check osm health status
        (2) debug osm issues

Usage:
  osm-health [command]

Available Commands:
  connectivity  Checks connectivity between Kubernetes resources
  control-plane Checks the osm control plane
  help          Help about any command
  ingress       Checks ingress to Kubernetes resources

Flags:
  -h, --help                   help for osm-health
      --osm-namespace string   namespace for osm control plane (default "osm-system")

Additional help topics:
  osm-health validate      Validates YAML files including SMI policies

Use "osm-health [command] --help" for more information about a command.

Windows testing:

PS > .\_dist\windows-amd64\osm-health.exe
10:31AM INF osm-health version: dev; 9ac94e4a93ab1e3d59710c3f46fd0b6adf8f0898; 2022-01-03 file=main.go:65 module=main
The osm-health cli enables you to
        (1) check osm health status
        (2) debug osm issues

Usage:
  osm-health [command]

Available Commands:
  connectivity  Checks connectivity between Kubernetes resources
  control-plane Checks the osm control plane
  help          Help about any command
  ingress       Checks ingress to Kubernetes resources

Flags:
  -h, --help                   help for osm-health
      --osm-namespace string   namespace for osm control plane (default "osm-system")

Additional help topics:
  osm-health validate      Validates YAML files including SMI policies

Use "osm-health [command] --help" for more information about a command.

@johnsonshi johnsonshi force-pushed the create-gh-release-workflow branch from 30511f2 to 29475e3 Compare January 3, 2022 18:35
@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2022

Codecov Report

Merging #121 (29475e3) into main (b4f79df) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   42.51%   42.51%           
=======================================
  Files          29       29           
  Lines        1249     1249           
=======================================
  Hits          531      531           
  Misses        718      718           
Flag Coverage Δ
unittests 42.51% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/envoy/parse.go 57.14% <ø> (ø)
pkg/kubernetes/podhelper/endpoints.go 75.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ba8b8d...29475e3. Read the comment docs.

@@ -15,7 +15,7 @@ func TestEnvoyConfigParser(t *testing.T) {
assert := tassert.New(t)
actual := getReleases()

assert.Equal([]string{"v0.10", "v0.11", "v0.6", "v0.7", "v0.8", "v0.9"}, actual)
assert.Equal([]string{"v0.10", "v0.11", "v0.7", "v0.8", "v0.9"}, actual)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to pass unit tests as v0.6 is not supported anymore.

runs-on: ubuntu-latest
needs: version
env:
# VERSION: ${{ needs.version.outputs.version }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out?

@johnsonshi johnsonshi closed this Mar 21, 2022
@johnsonshi johnsonshi deleted the create-gh-release-workflow branch March 21, 2022 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload bin release artifacts
3 participants