5
5
test :
6
6
strategy :
7
7
matrix :
8
- go : [ "1.21 ", "1.20", "1.19 " ]
8
+ go : [ "1.22 ", "1.21 " ]
9
9
os : [ ubuntu-22.04, ubuntu-20.04 ]
10
10
name : Tests Go ${{ matrix.go }} on ${{ matrix.os }} # This name is used in main branch protection rules
11
11
runs-on : ${{ matrix.os }}
@@ -31,11 +31,11 @@ jobs:
31
31
run : |
32
32
sudo apt-get install -y make gcc
33
33
- name : Install Go
34
- uses : actions/setup-go@v4
34
+ uses : actions/setup-go@v5
35
35
with :
36
36
go-version : ${{ matrix.go }}
37
37
- name : Checkout code
38
- uses : actions/checkout@v1
38
+ uses : actions/checkout@v4
39
39
- name : Run tests
40
40
run : |
41
41
# separate test to avoid RESET MASTER conflict
46
46
name : golangci
47
47
runs-on : ubuntu-latest
48
48
steps :
49
- - uses : actions/checkout@v2
49
+ - uses : actions/checkout@v4
50
50
- name : golangci-lint
51
- uses : golangci/golangci-lint-action@v2
51
+ uses : golangci/golangci-lint-action@v6
52
52
with :
53
53
version : latest
54
54
args : --timeout=3m
@@ -65,10 +65,10 @@ jobs:
65
65
run : |
66
66
sudo apt-get install -y make gcc
67
67
- name : Install Go
68
- uses : actions/setup-go@v2
68
+ uses : actions/setup-go@v5
69
69
with :
70
- go-version : " 1.20 "
70
+ go-version : " 1.22 "
71
71
- name : Checkout code
72
- uses : actions/checkout@v1
72
+ uses : actions/checkout@v4
73
73
- name : Build on ${{ matrix.os }}/${{ matrix.arch }}
74
74
run : GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build ./...
0 commit comments