File tree 1 file changed +6
-22
lines changed
1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -14,31 +14,15 @@ jobs:
14
14
runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
- go-version : ['1.20', 1.x ]
17
+ go-version : [stable, oldstable ]
18
18
os : [ubuntu-latest, macos-latest] # Go plugins are only supported on linux, freebsd, and darwin.
19
19
env :
20
20
CGO_ENABLED : 0
21
21
steps :
22
- - uses : actions/checkout@v3
23
- - uses : actions/setup-go@v4
22
+ - uses : actions/checkout@v4
23
+ - uses : actions/setup-go@v5
24
24
with :
25
- go-version : ' 1.20'
26
- cache : false
27
-
28
- - name : Cache Go modules
29
- uses : actions/cache@v3
30
- with :
31
- # In order:
32
- # * Module download cache
33
- # * Build cache (Linux)
34
- # * Build cache (Mac)
35
- path : |
36
- ~/go/pkg/mod
37
- ~/.cache/go-build
38
- ~/Library/Caches/go-build
39
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
40
- restore-keys : |
41
- ${{ runner.os }}-${{ matrix.go-version }}-go-
25
+ go-version : ${{ matrix.go-version }}
42
26
43
27
- name : Check and get dependencies
44
28
run : |
56
40
CGO_ENABLED : 1
57
41
58
42
- name : golangci-lint
59
- uses : golangci/golangci-lint-action@v3
43
+ uses : golangci/golangci-lint-action@v6
60
44
with :
61
- version : v1.53.2
45
+ version : v1.59.1
62
46
# The installation mode `goinstall` always uses `CGO_ENABLED=1`.
63
47
install-mode : goinstall
64
48
args : --timeout=10m
You can’t perform that action at this time.
0 commit comments