19
19
# benchmarks. At the end do a quick check to ensure the tests to not leave
20
20
# files in the tree.
21
21
test :
22
- name : " test: go${{matrix.gover}}.x/ ${{matrix.os}}"
22
+ name : " test: ${{matrix.os}}"
23
23
runs-on : " ${{matrix.os}}"
24
24
continue-on-error : true
25
25
defaults :
29
29
fail-fast : false
30
30
matrix :
31
31
os : [ubuntu-latest, macos-latest, windows-latest]
32
- # Do not forget to bump every 6 months!
33
- gover : ["1.19"]
34
32
env :
35
33
PYTHONDONTWRITEBYTECODE : x
36
34
steps :
40
38
- uses : actions/checkout@v3
41
39
with :
42
40
fetch-depth : 2
43
- - uses : actions/setup-go@v3
41
+ - uses : actions/setup-go@v4
44
42
with :
45
- go-version : " ~${{matrix.gover}}.0"
46
- cache : true
43
+ go-version-file : go.mod
47
44
- name : ' go install necessary tools'
48
45
if : always()
49
46
run : |
87
84
# to cut on runtime, at the cost of latency. I dislike waiting for results
88
85
# so I prefer to run them in parallel.
89
86
lint :
90
- name : " lint: go${{matrix.gover}}.x/ ${{matrix.os}}"
87
+ name : " lint: ${{matrix.os}}"
91
88
runs-on : " ${{matrix.os}}"
92
89
continue-on-error : true
93
90
defaults :
@@ -100,19 +97,16 @@ jobs:
100
97
# OS-specific code benefits from explicitly linting on macOS and
101
98
# Windows.
102
99
os : [ubuntu-latest, macos-latest, windows-latest]
103
- # Do not forget to bump every 6 months!
104
- gover : ["1.19"]
105
100
env :
106
101
PYTHONDONTWRITEBYTECODE : x
107
102
steps :
108
103
- name : Turn off git core.autocrlf
109
104
if : matrix.os == 'windows-latest'
110
105
run : git config --global core.autocrlf false
111
106
- uses : actions/checkout@v3
112
- - uses : actions/setup-go@v3
107
+ - uses : actions/setup-go@v4
113
108
with :
114
- go-version : " ~${{matrix.gover}}.0"
115
- cache : true
109
+ go-version-file : go.mod
116
110
- name : " Debug"
117
111
run : |
118
112
echo HOME = $HOME
@@ -288,23 +282,20 @@ jobs:
288
282
289
283
290
284
codeql :
291
- name : " codeql: go${{matrix.gover}}.x/ ${{matrix.os}}"
285
+ name : " codeql: ${{matrix.os}}"
292
286
runs-on : " ${{matrix.os}}"
293
287
continue-on-error : true
294
288
strategy :
295
289
fail-fast : false
296
290
matrix :
297
291
os : [ubuntu-latest]
298
- # Do not forget to bump every 6 months!
299
- gover : ["1.19"]
300
292
permissions :
301
293
security-events : write
302
294
steps :
303
295
- uses : actions/checkout@v3
304
- - uses : actions/setup-go@v3
296
+ - uses : actions/setup-go@v4
305
297
with :
306
- go-version : " ~${{matrix.gover}}.0"
307
- cache : true
298
+ go-version-file : go.mod
308
299
- name : Initialize CodeQL
309
300
uses : github/codeql-action/init@v2
310
301
with :
0 commit comments