File tree Expand file tree Collapse file tree 2 files changed +19
-29
lines changed Expand file tree Collapse file tree 2 files changed +19
-29
lines changed Original file line number Diff line number Diff line change 1- on : [push, pull_request]
21name : linter
2+ on : [push, pull_request]
3+
4+ concurrency :
5+ group : ' ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
6+ cancel-in-progress : true
37
48jobs :
59 lint :
6- strategy :
7- matrix :
8- go-version : [1.x]
9- platform : [ubuntu-latest]
10- runs-on : ${{ matrix.platform }}
10+ runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v2
14-
13+ - uses : actions/checkout@v3
1514 - name : golangci-lint
16- uses : golangci/golangci-lint-action@v2
15+ uses : golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
1716 with :
18- version : v1.41
17+ version : v1.52.2
Original file line number Diff line number Diff line change 1+ name : tests
2+
13on :
24 push :
35 branches :
68 branches :
79 - master
810
9- name : tests
11+ concurrency :
12+ group : ' ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
13+ cancel-in-progress : true
1014
1115jobs :
1216 test :
1317 strategy :
1418 matrix :
15- go-version : [1.x, 1.15.x ]
19+ go-version : [stable, oldstable ]
1620 platform : [ubuntu-latest]
1721 include :
1822 # only update test coverage stats with most recent go version on linux
19- - go-version : 1.x
23+ - go-version : stable
2024 platform : ubuntu-latest
2125 update-coverage : true
2226 runs-on : ${{ matrix.platform }}
2327
2428 steps :
25- - name : Cancel previous workflow runs
26- uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
27- with :
28- access_token : ${{ github.token }}
29-
30- - uses : actions/checkout@v2
31- - uses : actions/setup-go@v2
29+ - uses : actions/checkout@v3
30+ - uses : actions/setup-go@v4
3231 with :
3332 go-version : ${{ matrix.go-version }}
34- - run : go version
35-
36- - name : Cache go modules
37- uses : actions/cache@v2
38- with :
39- path : ~/go/pkg/mod
40- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
41- restore-keys : ${{ runner.os }}-go-
4233
4334 - name : Run go test
4435 run : go test -v -race -coverprofile coverage.txt -covermode atomic ./...
4536
4637 - name : Upload coverage to Codecov
4738 if : ${{ matrix.update-coverage }}
48- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2 .1.0
39+ uses : codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 # v3 .1.3
You can’t perform that action at this time.
0 commit comments