19
19
- ' _fixture/**'
20
20
- ' .github/**'
21
21
- ' codecov.yml'
22
+ workflow_dispatch :
22
23
23
24
jobs :
24
25
test :
25
26
env :
26
- latest : ' 1.17 '
27
+ latest : ' 1.18 '
27
28
strategy :
28
29
matrix :
29
30
os : [ubuntu-latest, macos-latest, windows-latest]
30
- go : ['1.14 ', '1.15 ', '1.16', '1.17 ']
31
+ go : ['1.16 ', '1.17 ', '1.18 ']
31
32
name : ${{ matrix.os }} @ Go ${{ matrix.go }}
32
33
runs-on : ${{ matrix.os }}
33
34
steps :
34
35
- name : Set up Go ${{ matrix.go }}
35
- uses : actions/setup-go@v2
36
+ uses : actions/setup-go@v3
36
37
with :
37
38
go-version : ${{ matrix.go }}
38
39
39
40
- name : Checkout Code
40
- uses : actions/checkout@v2
41
+ uses : actions/checkout@v3
41
42
with :
42
43
ref : ${{ github.ref }}
43
44
44
45
- name : Run static checks
45
46
if : matrix.go == env.latest && matrix.os == 'ubuntu-latest'
46
47
run : |
47
- go get -u honnef.co/go/tools/cmd/staticcheck@latest
48
+ go install honnef.co/go/tools/cmd/staticcheck@latest
48
49
staticcheck -tests=false ./...
49
50
50
51
- name : Run Tests
@@ -53,36 +54,36 @@ jobs:
53
54
54
55
- name : Upload coverage to Codecov
55
56
if : success() && matrix.go == env.latest && matrix.os == 'ubuntu-latest'
56
- uses : codecov/codecov-action@v2
57
+ uses : codecov/codecov-action@v3
57
58
with :
58
59
fail_ci_if_error : false
59
60
benchmark :
60
61
needs : test
61
62
strategy :
62
63
matrix :
63
64
os : [ubuntu-latest]
64
- go : [1.17 ]
65
+ go : [1.18 ]
65
66
name : Benchmark comparison ${{ matrix.os }} @ Go ${{ matrix.go }}
66
67
runs-on : ${{ matrix.os }}
67
68
steps :
68
69
- name : Set up Go ${{ matrix.go }}
69
- uses : actions/setup-go@v2
70
+ uses : actions/setup-go@v3
70
71
with :
71
72
go-version : ${{ matrix.go }}
72
73
73
74
- name : Checkout Code (Previous)
74
- uses : actions/checkout@v2
75
+ uses : actions/checkout@v3
75
76
with :
76
77
ref : ${{ github.base_ref }}
77
78
path : previous
78
79
79
80
- name : Checkout Code (New)
80
- uses : actions/checkout@v2
81
+ uses : actions/checkout@v3
81
82
with :
82
83
path : new
83
84
84
85
- name : Install Dependencies
85
- run : go get -v golang.org/x/perf/cmd/benchstat
86
+ run : go install golang.org/x/perf/cmd/benchstat@latest
86
87
87
88
- name : Run Benchmark (Previous)
88
89
run : |
0 commit comments