@@ -12,30 +12,26 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Checkout code
15- uses : actions/checkout@v3
15+ uses : actions/checkout@v4
1616 - name : Install Go
17- uses : actions/setup-go@v4
17+ uses : actions/setup-go@v5
1818 with :
19- go-version : 1.21 .x
19+ go-version : 1.23 .x
2020 - name : golangci-lint
21- uses : golangci/golangci-lint-action@v3
21+ uses : golangci/golangci-lint-action@v6
2222 with :
23- version : v1.52.2
24- - name : Run linters
25- run : |
26- export PATH=$PATH:$(go env GOPATH)/bin
27- ./pre-commit
23+ version : latest
2824
2925 test :
3026 runs-on : ubuntu-latest
3127 strategy :
3228 matrix :
33- goversion : ["1.15 ", "1.16 ", "1.17 ", "1.18", "1.19", "1.20", "1.21 "]
29+ goversion : ["1.20 ", "1.21 ", "1.22 ", "1.23 "]
3430 steps :
3531 - name : Checkout code
36- uses : actions/checkout@v3
32+ uses : actions/checkout@v4
3733 - name : Install Go
38- uses : actions/setup-go@v4
34+ uses : actions/setup-go@v5
3935 with :
4036 go-version : ${{ matrix.goversion }}
4137 - name : Run tests
@@ -47,46 +43,25 @@ jobs:
4743 runs-on : ubuntu-latest
4844 strategy :
4945 matrix :
50- buildversion : ["1.15 ", "1.16 ", "1.17 ", "1.18", "1.19", "1.20", "1.21 "]
51- testversion : ["1.15 ", "1.16 ", "1.17 ", "1.18", "1.19", "1.20", "1.21 "]
46+ buildversion : ["1.20 ", "1.21 ", "1.22 ", "1.23 "]
47+ testversion : ["1.20 ", "1.21 ", "1.22 ", "1.23 "]
5248 steps :
5349 - name : Checkout code
54- uses : actions/checkout@v3
50+ uses : actions/checkout@v4
5551 - name : Install Go to build artifact
56- uses : actions/setup-go@v4
52+ uses : actions/setup-go@v5
5753 with :
5854 go-version : ${{ matrix.buildversion }}
5955 - name : Build artifact for inttest
6056 run : |
6157 go version
62- GO111MODULE=on make build-linux
58+ make build-linux
6359 - name : Install Go for inttest
64- uses : actions/setup-go@v4
60+ uses : actions/setup-go@v5
6561 with :
6662 go-version : ${{ matrix.testversion }}
6763 - name : Integration test
6864 run : |
6965 go version
7066 make inttest
7167
72- build :
73- runs-on : ubuntu-latest
74- needs : [lint, test, inttest]
75- steps :
76- - name : Checkout code
77- uses : actions/checkout@v3
78- - name : Install Go
79- uses : actions/setup-go@v4
80- with :
81- go-version : 1.21.x
82- - name : build
83- run : |
84- go version
85- make build-linux
86- make build-windows
87- make build-darwin
88- - name : upload artifacts
89- uses : actions/upload-artifact@master
90- with :
91- name : bin
92- path : bin/
0 commit comments