66 pull_request :
77
88env :
9- GO_VERSION : ' 1.22'
9+ # https://github.com/actions/setup-go#supported-version-syntax
10+ # ex:
11+ # - 1.18beta1 -> 1.18.0-beta.1
12+ # - 1.18rc1 -> 1.18.0-rc.1
13+ GO_VERSION : ' 1.23'
1014
1115jobs :
1216 # Check if there is any dirty change for go mod tidy
1317 go-mod :
1418 runs-on : ubuntu-latest
1519 steps :
16- - name : Install Go
17- uses : actions/setup-go@v5
20+ - uses : actions/checkout@v4
21+ - uses : actions/setup-go@v5
1822 with :
19- # https://github.com/actions/setup-go#supported-version-syntax
20- # ex:
21- # - 1.18beta1 -> 1.18.0-beta.1
22- # - 1.18rc1 -> 1.18.0-rc.1
2323 go-version : ${{ env.GO_VERSION }}
24- - name : Checkout code
25- uses : actions/checkout@v4
2624 - name : Check go mod
2725 run : |
2826 go mod tidy
@@ -35,14 +33,15 @@ jobs:
3533 runs-on : ubuntu-latest
3634 steps :
3735 - uses : actions/checkout@v4
38- - name : Install Go
39- uses : actions/setup-go@v5
36+ - uses : actions/setup-go@v5
4037 with :
4138 # https://github.com/actions/setup-go#supported-version-syntax
4239 # ex:
4340 # - 1.18beta1 -> 1.18.0-beta.1
4441 # - 1.18rc1 -> 1.18.0-rc.1
45- go-version : ${{ env.GO_VERSION }}
42+ # TODO(ldez) must be changed after the first release of golangci-lint with go1.23
43+ # go-version: ${{ env.GO_VERSION }}
44+ go-version : ' 1.22'
4645 - name : lint
47464847 with :
5352 runs-on : windows-latest
5453 steps :
5554 - uses : actions/checkout@v4
56- - name : Install Go
57- uses : actions/setup-go@v5
55+ - uses : actions/setup-go@v5
5856 with :
59- # https://github.com/actions/setup-go#supported-version-syntax
60- # ex:
61- # - 1.18beta1 -> 1.18.0-beta.1
62- # - 1.18rc1 -> 1.18.0-rc.1
6357 go-version : ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
6458 - name : Run tests
6559 run : make.exe test
6963 runs-on : macos-latest
7064 steps :
7165 - uses : actions/checkout@v4
72- - name : Install Go
73- uses : actions/setup-go@v5
66+ - uses : actions/setup-go@v5
7467 with :
75- # https://github.com/actions/setup-go#supported-version-syntax
76- # ex:
77- # - 1.18beta1 -> 1.18.0-beta.1
78- # - 1.18rc1 -> 1.18.0-rc.1
7968 go-version : ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
8069 - name : Run tests
8170 run : make test
@@ -86,43 +75,27 @@ jobs:
8675 strategy :
8776 matrix :
8877 golang :
89- - ' 1.21'
9078 - ' 1.22'
79+ - ' 1.23'
9180 steps :
9281 - uses : actions/checkout@v4
93- - name : Install Go
94- uses : actions/setup-go@v5
82+ - uses : actions/setup-go@v5
9583 with :
96- # https://github.com/actions/setup-go#supported-version-syntax
97- # ex:
98- # - 1.18beta1 -> 1.18.0-beta.1
99- # - 1.18rc1 -> 1.18.0-rc.1
10084 go-version : ${{ matrix.golang }}
101- - uses : actions/cache@v4
102- with :
103- path : ~/go/pkg/mod
104- key : ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
105- restore-keys : |
106- ${{ runner.os }}-go-${{ matrix.golang }}-
10785 - name : Run tests
10886 run : make test
10987
88+ # Checks: GitHub action assets
11089 check_generated :
111- needs : golangci-lint # run after golangci-lint action to not produce duplicated errors
11290 runs-on : ubuntu-latest
11391 steps :
11492 - uses : actions/checkout@v4
115- - name : Unshallow
116- run : git fetch --prune --unshallow
117- - name : Install Go
118- uses : actions/setup-go@v5
11993 with :
120- # https://github.com/actions/setup-go#supported-version-syntax
121- # ex:
122- # - 1.18beta1 -> 1.18.0-beta.1
123- # - 1.18rc1 -> 1.18.0-rc.1
94+ fetch-depth : 0
95+ - uses : actions/setup-go@v5
96+ with :
12497 go-version : ${{ env.GO_VERSION }}
125- - name : Check generated files are up to date
98+ - name : Check generated files are up-to- date
12699 run : make fast_check_generated
127100 env :
128101 # needed for github-action-config.json generation
@@ -145,13 +118,8 @@ jobs:
145118 runs-on : ubuntu-latest
146119 steps :
147120 - uses : actions/checkout@v4
148- - name : Install Go
149- uses : actions/setup-go@v5
121+ - uses : actions/setup-go@v5
150122 with :
151- # https://github.com/actions/setup-go#supported-version-syntax
152- # ex:
153- # - 1.18beta1 -> 1.18.0-beta.1
154- # - 1.18rc1 -> 1.18.0-rc.1
155123 go-version : ${{ env.GO_VERSION }}
156124 - name : Build golangci-lint
157125 run : make build
0 commit comments