File tree 3 files changed +59
-4
lines changed
3 files changed +59
-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
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:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Checkout code
16
- uses : actions/checkout@v1
17
- with :
18
- path : src/github.com/nats-io/natscli
16
+ uses : actions/checkout@v4
19
17
20
18
- name : Setup Go
21
- uses : actions/setup-go@v1
19
+ uses : actions/setup-go@v5
22
20
with :
23
21
go-version : ${{matrix.go}}
24
22
You can’t perform that action at this time.
0 commit comments