25
25
- 1.23.x
26
26
- 1.24.x
27
27
runner :
28
- - ns-ubuntu -amd64
28
+ - ns-linux -amd64
29
29
- ns-macos-arm64
30
30
- ns-windows-amd64
31
31
runs-on : ${{ matrix.runner }}
@@ -94,22 +94,22 @@ jobs:
94
94
Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test'))
95
95
run: go env -w GOFLAGS=-count=1
96
96
- run : go run cuelang.org/go/cmd/cue login --token=${{ secrets.NOTCUECKOO_CUE_TOKEN }}
97
- - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
97
+ - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
98
98
name : Early git and code sanity checks
99
99
run : go run ./internal/ci/checks
100
100
- if : |-
101
101
((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
102
- Dispatch-Trailer: {"type":"')))) || !(matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
102
+ Dispatch-Trailer: {"type":"')))) || !(matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
103
103
name: Test
104
104
run: go test ./...
105
- - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
105
+ - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
106
106
name : Test with -race
107
107
env :
108
108
GORACE : atexit_sleep_ms=10
109
109
run : go test -race ./...
110
110
- if : |-
111
111
(((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
112
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
112
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
113
113
name: Test on 32 bits
114
114
env:
115
115
GOARCH: "386"
@@ -119,32 +119,32 @@ jobs:
119
119
- id : auth
120
120
if : |-
121
121
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
122
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
122
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
123
123
name : gcloud auth for end-to-end tests
124
124
uses : google-github-actions/auth@v2
125
125
with :
126
126
credentials_json : ${{ secrets.E2E_GCLOUD_KEY }}
127
127
- if : |-
128
128
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
129
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
129
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
130
130
name: gcloud setup for end-to-end tests
131
131
uses: google-github-actions/setup-gcloud@v2
132
132
- if : |-
133
133
github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
134
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
134
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
135
135
name: End-to-end test
136
136
env:
137
137
CUE_TEST_TOKEN: ${{ secrets.E2E_PORCUEPINE_CUE_TOKEN }}
138
138
run: |-
139
139
cd internal/_e2e
140
140
go test -race
141
- - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
141
+ - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
142
142
name : Go checks
143
143
run : |-
144
144
go vet ./...
145
145
go mod tidy
146
146
(cd internal/_e2e && go test -run=-)
147
- - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
147
+ - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
148
148
name : staticcheck
149
149
uses : dominikh/staticcheck-action@v1
150
150
with :
@@ -153,7 +153,7 @@ jobs:
153
153
use-cache : false
154
154
- if : |-
155
155
(((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, '
156
- Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
156
+ Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
157
157
name: Check all git tags are available
158
158
run: |-
159
159
cd $(mktemp -d)
@@ -169,7 +169,7 @@ jobs:
169
169
echo "Did you forget about refs/attic branches? https://github.com/cue-lang/cue/wiki/Notes-for-project-maintainers"
170
170
exit 1
171
171
fi
172
- - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-ubuntu -amd64')
172
+ - if : (matrix.go-version == '1.24.x' && matrix.runner == 'ns-linux -amd64')
173
173
name : Generate
174
174
run : go generate ./...
175
175
- if : always()
0 commit comments