-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from nats-io/gha
Moved to GHA
- Loading branch information
Showing
696 changed files
with
85 additions
and
339,199 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go: [1.16] | ||
|
||
env: | ||
GOPATH: /home/runner/work/nats-account-server | ||
GO111MODULE: "on" | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
with: | ||
path: src/github.com/nats-io/nats-account-server | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{matrix.go}} | ||
|
||
- name: Install deps | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
go get -u honnef.co/go/tools/cmd/staticcheck | ||
- name: Lint | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
GO_LIST=$(go list ./...) | ||
go build | ||
$(exit $(go fmt $GO_LIST | wc -l)) | ||
go vet $GO_LIST | ||
$GOPATH/bin/staticcheck $GO_LIST | ||
- name: Run tests | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
set -e | ||
go test -vet=off -i ./... | ||
# go test -vet=off -v -run=TestNoRace --failfast -p=1 ./... | ||
# coverage via cov.sh disabled while just testing the waters | ||
# Also disable race since we are overwhelming the GHA runners. | ||
go test -vet=off -v -p=1 --failfast ./... | ||
set +e |
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 |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
*.out | ||
.idea/ | ||
.vscode/* | ||
dist/ | ||
dist/ | ||
vendor/ |
This file was deleted.
Oops, something went wrong.
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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.