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
@@ -162,7 +155,6 @@ jobs:
162
155
- name : Run `cargo-deny`
163
156
uses :
EmbarkStudios/[email protected]
164
157
165
-
166
158
check-schema :
167
159
name : Check schema
168
160
runs-on : ubuntu-24.04
@@ -203,7 +195,6 @@ jobs:
203
195
exit 1
204
196
fi
205
197
206
-
207
198
clippy :
208
199
name : Run Clippy
209
200
needs : [rustfmt, opa-lint]
@@ -221,14 +212,7 @@ jobs:
221
212
with :
222
213
components : clippy
223
214
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
215
+ - uses : ./.github/actions/build-policies
232
216
233
217
- name : Setup sccache
234
218
uses :
mozilla-actions/[email protected]
@@ -237,7 +221,6 @@ jobs:
237
221
run : |
238
222
cargo clippy --workspace --tests --bins --lib -- -D warnings
239
223
240
-
241
224
compile-test-artifacts :
242
225
name : Compile test artifacts
243
226
runs-on : ubuntu-24.04
@@ -263,15 +246,14 @@ jobs:
263
246
- name : Build and archive tests
264
247
run : cargo nextest archive --workspace --archive-file nextest-archive.tar.zst
265
248
env :
266
- SQLX_OFFLINE : ' 1 '
249
+ SQLX_OFFLINE : " 1 "
267
250
268
251
- name : Upload archive to workflow
269
252
270
253
with :
271
254
name : nextest-archive
272
255
path : nextest-archive.tar.zst
273
256
274
-
275
257
test :
276
258
name : Run test suite with Rust stable
277
259
needs : [rustfmt, opa-lint, compile-test-artifacts]
0 commit comments