File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,39 +13,52 @@ jobs:
1313 client-build-and-test :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1717
1818 - name : Setup Go
19- uses : actions/setup-go@v3
19+ uses : actions/setup-go@v4
2020 with :
21- go-version : " 1.18"
21+ go-version : " 1.20"
22+ cache : true
2223
2324 - name : Run Go generators
2425 run : go generate ./.../gen
2526
27+ - name : Ensure generated code is clean
28+ run : git diff --exit-code
29+
30+ - name : Run Go vet
31+ run : go vet ./...
32+
2633 - name : Build Go
2734 run : go build ./...
2835
2936 - name : Install gotestsum
30- run : go install gotest.tools/gotestsum@latest
37+ run : go install gotest.tools/gotestsum@v1.12.0
3138
3239 - name : Run Go tests
3340 run : gotestsum
3441
42+ - name : Install govulncheck
43+ run : go install golang.org/x/vuln/cmd/govulncheck@v1.1.0
44+
45+ - name : Run govulncheck
46+ run : govulncheck ./...
47+
3548 client-scan :
3649 if : github.event_name != 'schedule'
3750 runs-on : ubuntu-latest
3851 steps :
3952 - uses : actions/checkout@v3
40- - uses : securego/gosec@master
53+ - uses : securego/gosec@v2.19.0
4154 with :
4255 args : ./...
4356
4457 client-lint :
4558 if : github.event_name != 'schedule'
4659 runs-on : ubuntu-latest
4760 steps :
48- - uses : actions/checkout@v3
61+ - uses : actions/checkout@v4
4962
5063 - name : Lint Go
5164 uses : keep-network/golint-action@v1.0.2
You can’t perform that action at this time.
0 commit comments