@@ -22,12 +22,11 @@ jobs:
2222 runs-on : ubuntu-latest
2323 steps :
2424 - name : Checkout code
25- uses : actions/checkout@v2
26- - name : Run golangci-lint
27- uses : golangci/golangci-lint-action@v2
25+ uses : actions/checkout@v3
26+ - name : Install Go
27+ uses : actions/setup-go@v4
2828 with :
29- version : latest
30- args : --timeout=30m
29+ go-version : 1.20.x
3130 - name : Check Go module tidiness
3231 shell : bash
3332 run : |
@@ -39,21 +38,26 @@ jobs:
3938 echo "Run 'go mod tidy' and commit them"
4039 exit 1
4140 fi
41+ - name : Run golangci-lint
42+ uses : golangci/golangci-lint-action@v3
43+ with :
44+ version : latest
45+ args : --timeout=30m
4246
4347 test :
4448 name : Test
4549 strategy :
4650 matrix :
47- go-version : [ 1.16 .x, 1.17 .x, 1.18 .x, 1.19 .x ]
51+ go-version : [ 1.17 .x, 1.18 .x, 1.19 .x, 1.20 .x ]
4852 platform : [ ubuntu-latest, macos-latest, windows-latest ]
4953 runs-on : ${{ matrix.platform }}
5054 steps :
5155 - name : Install Go
52- uses : actions/setup-go@v2
56+ uses : actions/setup-go@v4
5357 with :
5458 go-version : ${{ matrix.go-version }}
5559 - name : Checkout code
56- uses : actions/checkout@v2
60+ uses : actions/checkout@v3
5761 - name : Run tests with coverage
5862 run : go test -v -race -coverprofile=coverage -covermode=atomic ./...
5963 - name : Upload coverage report to Codecov
0 commit comments