File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 20
20
- ' .github/**'
21
21
- ' codecov.yml'
22
22
23
+ env :
24
+ latest : ' 1.17'
25
+
23
26
jobs :
24
27
test :
25
28
strategy :
26
29
matrix :
27
30
os : [ubuntu-latest, macos-latest, windows-latest]
28
- go : [1.14, 1.15, 1.16]
31
+ go : [1.14, 1.15, 1.16, 1.17 ]
29
32
name : ${{ matrix.os }} @ Go ${{ matrix.go }}
30
33
runs-on : ${{ matrix.os }}
31
34
steps :
@@ -39,17 +42,19 @@ jobs:
39
42
with :
40
43
ref : ${{ github.ref }}
41
44
42
- - name : Install Dependencies
43
- run : go get -u honnef.co/go/tools/cmd/staticcheck@latest
45
+ - name : Run static checks
46
+ if : matrix.go == env.latest && matrix.os == 'ubuntu-latest'
47
+ run : |
48
+ go get -u honnef.co/go/tools/cmd/staticcheck@latest
49
+ staticcheck -tests=false ./...
44
50
45
51
- name : Run Tests
46
52
run : |
47
- staticcheck -tests=false ./...
48
53
go test -race --coverprofile=coverage.coverprofile --covermode=atomic ./...
49
54
50
55
- name : Upload coverage to Codecov
51
- if : success() && matrix.go == 1.16 && matrix.os == 'ubuntu-latest'
52
- uses : codecov/codecov-action@v1
56
+ if : success() && matrix.go == env.latest && matrix.os == 'ubuntu-latest'
57
+ uses : codecov/codecov-action@v2
53
58
with :
54
59
token :
55
60
fail_ci_if_error : false
58
63
strategy :
59
64
matrix :
60
65
os : [ubuntu-latest]
61
- go : [1.16 ]
66
+ go : [1.17 ]
62
67
name : Benchmark comparison ${{ matrix.os }} @ Go ${{ matrix.go }}
63
68
runs-on : ${{ matrix.os }}
64
69
steps :
You can’t perform that action at this time.
0 commit comments