@@ -15,37 +15,20 @@ jobs:
15
15
16
16
strategy :
17
17
matrix :
18
- go-version : [ '1.20', 1.x ]
18
+ go-version : [ stable, oldstable ]
19
19
os : [ubuntu-latest, macos-latest, windows-latest]
20
20
21
21
steps :
22
- # https://github.com/marketplace/actions/setup-go-environment
23
- - name : Set up Go ${{ matrix.go-version }}
24
- uses : actions/setup-go@v2
25
- with :
26
- go-version : ${{ matrix.go-version }}
27
22
28
23
# https://github.com/marketplace/actions/checkout
29
24
- name : Checkout code
30
- uses : actions/checkout@v2
25
+ uses : actions/checkout@v3
31
26
32
- # https://github.com/marketplace/actions/cache
33
- - name : Cache Go modules
34
- uses : actions/cache@v3
27
+ # https://github.com/marketplace/actions/setup-go-environment
28
+ - name : Set up Go ${{ matrix.go-version }}
29
+ uses : actions/setup-go@v4
35
30
with :
36
- # In order:
37
- # * Module download cache
38
- # * Build cache (Linux)
39
- # * Build cache (Mac)
40
- # * Build cache (Windows)
41
- path : |
42
- ~/go/pkg/mod
43
- ~/.cache/go-build
44
- ~/Library/Caches/go-build
45
- %LocalAppData%\go-build
46
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
47
- restore-keys : |
48
- ${{ runner.os }}-${{ matrix.go-version }}-go-
31
+ go-version : ${{ matrix.go-version }}
49
32
50
33
- name : Test
51
34
run : go test -v -cover ./...
0 commit comments