4
4
push :
5
5
branches :
6
6
- main
7
- - ' release/**'
7
+ - " release/**"
8
8
tags :
9
- - ' v* '
9
+ - " v* "
10
10
pull_request :
11
11
12
12
concurrency :
31
31
- name : Checkout the code
32
32
33
33
34
- - name : Setup OPA
35
- uses :
open-policy-agent/[email protected]
36
- with :
37
- version : 0.70.0
34
+ - uses : ./.github/actions/build-policies
38
35
39
36
- name : Setup Regal
40
37
uses : StyraInc/setup-regal@v1
73
70
working-directory : ./frontend
74
71
run : npm run lint
75
72
76
-
77
73
frontend-test :
78
74
name : Run the frontend test suite
79
75
runs-on : ubuntu-24.04
98
94
working-directory : ./frontend
99
95
run : npm test
100
96
101
-
102
97
frontend-knip :
103
98
name : Check the frontend for unused dependencies
104
99
runs-on : ubuntu-24.04
@@ -123,7 +118,6 @@ jobs:
123
118
working-directory : ./frontend
124
119
run : npm run knip
125
120
126
-
127
121
rustfmt :
128
122
name : Check Rust style
129
123
runs-on : ubuntu-24.04
@@ -143,7 +137,6 @@ jobs:
143
137
- name : Check style
144
138
run : cargo fmt --all -- --check
145
139
146
-
147
140
cargo-deny :
148
141
name : Run `cargo deny` checks
149
142
runs-on : ubuntu-24.04
@@ -161,7 +154,8 @@ jobs:
161
154
162
155
- name : Run `cargo-deny`
163
156
uses :
EmbarkStudios/[email protected]
164
-
157
+ with :
158
+ rust-version : stable
165
159
166
160
check-schema :
167
161
name : Check schema
@@ -203,7 +197,6 @@ jobs:
203
197
exit 1
204
198
fi
205
199
206
-
207
200
clippy :
208
201
name : Run Clippy
209
202
needs : [rustfmt, opa-lint]
@@ -217,18 +210,11 @@ jobs:
217
210
218
211
219
212
- name : Install Rust toolchain
220
- uses : dtolnay/rust-toolchain@1.84 .0
213
+ uses : dtolnay/rust-toolchain@1.85 .0
221
214
with :
222
215
components : clippy
223
216
224
- - name : Setup OPA
225
- uses :
open-policy-agent/[email protected]
226
- with :
227
- version : 0.64.1
228
-
229
- - name : Compile OPA policies
230
- working-directory : ./policies
231
- run : make
217
+ - uses : ./.github/actions/build-policies
232
218
233
219
- name : Setup sccache
234
220
uses :
mozilla-actions/[email protected]
@@ -237,7 +223,6 @@ jobs:
237
223
run : |
238
224
cargo clippy --workspace --tests --bins --lib -- -D warnings
239
225
240
-
241
226
compile-test-artifacts :
242
227
name : Compile test artifacts
243
228
runs-on : ubuntu-24.04
@@ -263,15 +248,14 @@ jobs:
263
248
- name : Build and archive tests
264
249
run : cargo nextest archive --workspace --archive-file nextest-archive.tar.zst
265
250
env :
266
- SQLX_OFFLINE : ' 1 '
251
+ SQLX_OFFLINE : " 1 "
267
252
268
253
- name : Upload archive to workflow
269
254
270
255
with :
271
256
name : nextest-archive
272
257
path : nextest-archive.tar.zst
273
258
274
-
275
259
test :
276
260
name : Run test suite with Rust stable
277
261
needs : [rustfmt, opa-lint, compile-test-artifacts]
@@ -303,7 +287,9 @@ jobs:
303
287
- name : Checkout the code
304
288
305
289
306
- - run : mkdir -p ~/.cargo/bin
290
+ - name : Install Rust toolchain
291
+ uses : dtolnay/rust-toolchain@stable
292
+
307
293
- name : Install nextest
308
294
uses : taiki-e/install-action@v2
309
295
with :
0 commit comments