@@ -11,12 +11,12 @@ jobs:
1111 lint :
1212 runs-on : ubuntu-latest
1313 steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
1416 - name : Install Go
1517 uses : actions/setup-go@v4
1618 with :
17- go-version : 1.20.x
18- - name : Checkout code
19- uses : actions/checkout@v3
19+ go-version : 1.21.x
2020 - name : golangci-lint
2121 uses : golangci/golangci-lint-action@v3
2222 with :
@@ -32,13 +32,12 @@ jobs:
3232 matrix :
3333 goversion : ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
3434 steps :
35+ - name : Checkout code
36+ uses : actions/checkout@v3
3537 - name : Install Go
36- if : success()
3738 uses : actions/setup-go@v4
3839 with :
3940 go-version : ${{ matrix.goversion }}
40- - name : Checkout code
41- uses : actions/checkout@v3
4241 - name : Run tests
4342 run : |
4443 go version
@@ -51,19 +50,17 @@ jobs:
5150 buildversion : ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
5251 testversion : ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
5352 steps :
54- - name : Install Go
55- if : success()
53+ - name : Checkout code
54+ uses : actions/checkout@v3
55+ - name : Install Go to build artifact
5656 uses : actions/setup-go@v4
5757 with :
5858 go-version : ${{ matrix.buildversion }}
59- - name : Checkout code
60- uses : actions/checkout@v3
61- - name : Build binary for inttest
59+ - name : Build artifact for inttest
6260 run : |
6361 go version
6462 GO111MODULE=on make build-linux
65- - name : Install Go
66- if : success()
63+ - name : Install Go for inttest
6764 uses : actions/setup-go@v4
6865 with :
6966 go-version : ${{ matrix.testversion }}
8178 - name : Install Go
8279 uses : actions/setup-go@v4
8380 with :
84- go-version : 1.21
81+ go-version : 1.21.x
8582 - name : build
8683 run : |
8784 go version
0 commit comments