44 push :
55 branches :
66 - main
7- - ' release/**'
7+ - " release/**"
88 tags :
9- - ' v* '
9+ - " v* "
1010 pull_request :
1111
1212concurrency :
3131 - name : Checkout the code
32323333
34- - name : Setup OPA
35- uses :
open-policy-agent/[email protected] 36- with :
37- version : 0.70.0
34+ - uses : ./.github/actions/build-policies
3835
3936 - name : Setup Regal
4037 uses : StyraInc/setup-regal@v1
7370 working-directory : ./frontend
7471 run : npm run lint
7572
76-
7773 frontend-test :
7874 name : Run the frontend test suite
7975 runs-on : ubuntu-24.04
9894 working-directory : ./frontend
9995 run : npm test
10096
101-
10297 frontend-knip :
10398 name : Check the frontend for unused dependencies
10499 runs-on : ubuntu-24.04
@@ -123,7 +118,6 @@ jobs:
123118 working-directory : ./frontend
124119 run : npm run knip
125120
126-
127121 rustfmt :
128122 name : Check Rust style
129123 runs-on : ubuntu-24.04
@@ -143,7 +137,6 @@ jobs:
143137 - name : Check style
144138 run : cargo fmt --all -- --check
145139
146-
147140 cargo-deny :
148141 name : Run `cargo deny` checks
149142 runs-on : ubuntu-24.04
@@ -161,7 +154,8 @@ jobs:
161154
162155 - name : Run `cargo-deny`
163156 uses :
EmbarkStudios/[email protected] 164-
157+ with :
158+ rust-version : stable
165159
166160 check-schema :
167161 name : Check schema
@@ -203,7 +197,6 @@ jobs:
203197 exit 1
204198 fi
205199
206-
207200 clippy :
208201 name : Run Clippy
209202 needs : [rustfmt, opa-lint]
@@ -217,18 +210,11 @@ jobs:
217210218211
219212 - name : Install Rust toolchain
220- uses : dtolnay/rust-toolchain@1.84 .0
213+ uses : dtolnay/rust-toolchain@1.85 .0
221214 with :
222215 components : clippy
223216
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
232218
233219 - name : Setup sccache
234220 uses :
mozilla-actions/[email protected] @@ -237,7 +223,6 @@ jobs:
237223 run : |
238224 cargo clippy --workspace --tests --bins --lib -- -D warnings
239225
240-
241226 compile-test-artifacts :
242227 name : Compile test artifacts
243228 runs-on : ubuntu-24.04
@@ -263,15 +248,14 @@ jobs:
263248 - name : Build and archive tests
264249 run : cargo nextest archive --workspace --archive-file nextest-archive.tar.zst
265250 env :
266- SQLX_OFFLINE : ' 1 '
251+ SQLX_OFFLINE : " 1 "
267252
268253 - name : Upload archive to workflow
269254270255 with :
271256 name : nextest-archive
272257 path : nextest-archive.tar.zst
273258
274-
275259 test :
276260 name : Run test suite with Rust stable
277261 needs : [rustfmt, opa-lint, compile-test-artifacts]
@@ -303,7 +287,9 @@ jobs:
303287 - name : Checkout the code
304288305289
306- - run : mkdir -p ~/.cargo/bin
290+ - name : Install Rust toolchain
291+ uses : dtolnay/rust-toolchain@stable
292+
307293 - name : Install nextest
308294 uses : taiki-e/install-action@v2
309295 with :
0 commit comments