21
21
matrix :
22
22
go-version :
23
23
- 1.22.x
24
- - 1.23 .x
24
+ - 1.24 .x
25
25
runner :
26
26
- ubuntu-24.04
27
27
- macos-14
@@ -107,20 +107,20 @@ jobs:
107
107
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
108
108
Dispatch-Trailer: {"type":"')))) || github.ref == 'refs/heads/ci/test')
109
109
run: go clean -testcache
110
- - if : (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
110
+ - if : (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
111
111
name : Early git and code sanity checks
112
112
run : go run ./internal/ci/checks
113
113
- if : |-
114
114
((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
115
- Dispatch-Trailer: {"type":"')))) || !(matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
115
+ Dispatch-Trailer: {"type":"')))) || !(matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
116
116
name: Test
117
117
run: go test ./...
118
- - if : (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
118
+ - if : (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
119
119
name : Test with -race
120
120
env :
121
121
GORACE : atexit_sleep_ms=10
122
122
run : go test -race ./...
123
- - if : (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
123
+ - if : (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
124
124
name : Test on 32 bits
125
125
env :
126
126
GOARCH : " 386"
@@ -133,35 +133,29 @@ jobs:
133
133
credentials_json : ${{ secrets.E2E_GCLOUD_KEY }}
134
134
if : |-
135
135
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
136
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
136
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
137
137
name : gcloud auth for end-to-end tests
138
138
- if : |-
139
139
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
140
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
140
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
141
141
name: gcloud setup for end-to-end tests
142
142
uses: google-github-actions/setup-gcloud@v2
143
143
- if : |-
144
144
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
145
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
145
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
146
146
name: End-to-end test
147
147
run: |-
148
148
cd internal/_e2e
149
149
go test -race
150
150
env:
151
151
CUE_TEST_TOKEN: ${{ secrets.E2E_PORCUEPINE_CUE_TOKEN }}
152
- - if : (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
152
+ - if : (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
153
153
name : Go checks
154
154
run : |-
155
155
go vet ./...
156
156
go mod tidy
157
157
(cd internal/_e2e && go test -run=-)
158
- - if : (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-24.04')
159
- name : staticcheck
160
- uses : dominikh/staticcheck-action@v1
161
- with :
162
- version : 2024.1.1
163
- install-go : false
164
- - if : (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-24.04')
158
+ - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ubuntu-24.04')
165
159
name : Check all git tags are available
166
160
run : |-
167
161
cd $(mktemp -d)
@@ -177,7 +171,7 @@ jobs:
177
171
echo "Did you forget about refs/attic branches? https://github.com/cue-lang/cue/wiki/Notes-for-project-maintainers"
178
172
exit 1
179
173
fi
180
- - if : (matrix.go-version == '1.23 .x' && matrix.runner == 'ubuntu-24.04')
174
+ - if : (matrix.go-version == '1.24 .x' && matrix.runner == 'ubuntu-24.04')
181
175
name : Generate
182
176
env :
183
177
CUE_TOKEN : ${{ secrets.NOTCUECKOO_CUE_TOKEN }}
0 commit comments