File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ on: [push]
3
3
jobs :
4
4
lint :
5
5
runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ go-version : [ '1.20', '1.21.x', '1.22.x' ]
6
9
steps :
7
- - uses : actions/checkout@v2
8
- - uses : actions/setup-go@v2
10
+ - uses : actions/checkout@v4
11
+ - name : Setup Go ${{ matrix.go-version }}
12
+ uses : actions/setup-go@v4
9
13
with :
10
- go-version : ' 1.15.2 '
14
+ go-version : ${{ matrix.go-version }}
11
15
- run : go version
12
16
13
17
- name : gofmt
@@ -40,10 +44,11 @@ jobs:
40
44
test :
41
45
runs-on : ubuntu-latest
42
46
steps :
43
- - uses : actions/checkout@v2
44
- - uses : actions/setup-go@v2
47
+ - uses : actions/checkout@v4
48
+ - name : Setup Go ${{ matrix.go-version }}
49
+ uses : actions/setup-go@v4
45
50
with :
46
- go-version : ' 1.15.2 '
51
+ go-version : ${{ matrix.go-version }}
47
52
- run : go version
48
53
49
54
- name : test
You can’t perform that action at this time.
0 commit comments