File tree Expand file tree Collapse file tree 3 files changed +69
-4
lines changed
Expand file tree Collapse file tree 3 files changed +69
-4
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : github-actions
4+ directory : /
5+ schedule :
6+ interval : weekly
7+
8+ # version updates: disabled
9+ # security updates: enabled
10+ # https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file
11+ # ./go
12+ - package-ecosystem : gomod
13+ directory : /
14+ schedule :
15+ interval : daily
16+ open-pull-requests-limit : 0
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ tags :
5+ - v[0-9]+.[0-9]+.[0-9]+
6+ jobs :
7+ release :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version-file : go.mod
19+
20+ - name : Install deps
21+ shell : bash --noprofile --norc -x -eo pipefail {0}
22+ run : |
23+ go install honnef.co/go/tools/cmd/staticcheck@latest
24+ go install github.com/client9/misspell/cmd/misspell@latest
25+
26+ - name : Lint
27+ shell : bash --noprofile --norc -x -eo pipefail {0}
28+ run : |
29+ PATH=$PATH:$GOPATH/bin
30+ GO_LIST=$(go list ./...)
31+ $(exit $(go fmt $GO_LIST | wc -l))
32+ go vet -composites=false $GO_LIST
33+ find . -type f -name "*.go" | xargs misspell -error -locale US
34+ staticcheck -f stylish $GO_LIST
35+
36+ - name : Test
37+ shell : bash --noprofile --norc -x -eo pipefail {0}
38+ run : |
39+ set -e
40+ cd nats
41+ go test -v --failfast -p=1 ./...
42+ cd ../cli
43+ go test -v --failfast -p=1 ./...
44+
45+ - name : Run GoReleaser
46+ uses : goreleaser/goreleaser-action@v5
47+ with :
48+ version : latest
49+ args : release --clean
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -13,12 +13,10 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - name : Checkout code
16- uses : actions/checkout@v1
17- with :
18- path : src/github.com/nats-io/natscli
16+ uses : actions/checkout@v4
1917
2018 - name : Setup Go
21- uses : actions/setup-go@v1
19+ uses : actions/setup-go@v5
2220 with :
2321 go-version : ${{matrix.go}}
2422
You can’t perform that action at this time.
0 commit comments