@@ -20,14 +20,26 @@ jobs:
2020 - name : Checkout code
2121 uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2222 - name : Setup Golang
23- uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.0
23+ uses : actions/setup-go@v4
24+ with :
25+ go-version-file : go.mod
2426 - name : Run golangci-lint
2527 uses : golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
2628 with :
2729 version : v1.54
2830 args : --timeout 10m --exclude SA5011 --verbose --issues-exit-code=0
2931 only-new-issues : true
3032
33+ govulncheck :
34+ runs-on : ubuntu-latest
35+ name : Run govulncheck
36+ steps :
37+ - id : govulncheck
38+ uses : golang/govulncheck-action@v1
39+ with :
40+ go-version-file : go.mod
41+ go-package : ./...
42+
3143 test :
3244 name : Run unit tests for Go packages
3345 runs-on : ubuntu-latest
3648 uses : actions/checkout@v3 # v3.5.3
3749 - name : Setup Go
3850 uses : actions/setup-go@v4
51+ with :
52+ go-version-file : go.mod
3953
4054 - name : Download and required packages
4155 run : |
@@ -44,13 +58,13 @@ jobs:
4458 - name : Run all unit tests
4559 run : make test
4660
47- - name : check test coverage
48- uses : vladopajic/go-test-coverage@v2
49- with :
50- config : ./.testcoverage.yml
61+ - name : Check test coverage
62+ run : |
63+ go install github.com/vladopajic/go-test-coverage/v2@latest
64+ go-test-coverage --config= ./.testcoverage.yml
5165
5266 - name : Generate code coverage artifacts
53- uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
67+ uses : actions/upload-artifact@v4
5468 with :
5569 name : code-coverage
5670 path : coverage.out
0 commit comments