forked from flexera-public/wstunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding in build files * updates * Fixing make * Adding gopath * Removing checkout path * ginkgo * adding goreleaser * revive * env vars * gopath * env * workspace * stuffs * install * versions * default checkout dir * ginkgo
- Loading branch information
Showing
7 changed files
with
170 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: make-depend | ||
run: make depend | ||
go-version: 1.18 | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Debug | ||
run: | | ||
pwd | ||
echo ${HOME} | ||
echo ${GITHUB_WORKSPACE} | ||
echo ${GOPATH} | ||
echo ${GOROOT} | ||
go install golang.org/x/tools/cmd/cover@latest | ||
go install github.com/onsi/ginkgo/ginkgo@v1.16.5 | ||
go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest | ||
- name: Build | ||
run: make build | ||
- name: Tidy | ||
run: go mod tidy | ||
|
||
- name: Run Revive Action by pulling pre-built image | ||
uses: docker://morphy/revive-action:v2 | ||
- name: Test | ||
run: make test | ||
|
||
run: | | ||
ginkgo -r -cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# workflow name | ||
name: Generate release-artifacts | ||
|
||
# on events | ||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v3 | ||
- | ||
name: make-depend | ||
run: make depend | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro' | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Upload assets | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: myapp | ||
path: dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
builds: | ||
- binary: wstunnel | ||
env: | ||
- GO111MODULE=on | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
- 386 | ||
goos: | ||
- darwin | ||
- windows | ||
- linux | ||
ignore: | ||
- goos: windows | ||
goarch: arm64 | ||
- goos: windows | ||
goarch: 386 | ||
- goos: darwin | ||
goarch: 386 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.