|
63 | 63 | - name: Install Node |
64 | 64 | |
65 | 65 | with: |
66 | | - node-version: 20 |
| 66 | + node-version: 22 |
67 | 67 |
|
68 | 68 | - name: Install Node dependencies |
69 | 69 | working-directory: ./frontend |
|
88 | 88 | - name: Install Node |
89 | 89 | |
90 | 90 | with: |
91 | | - node-version: 20 |
| 91 | + node-version: 22 |
92 | 92 |
|
93 | 93 | - name: Install Node dependencies |
94 | 94 | working-directory: ./frontend |
@@ -135,11 +135,10 @@ jobs: |
135 | 135 | - name: Checkout the code |
136 | 136 | |
137 | 137 |
|
138 | | - - name: Install toolchain |
139 | | - run: | |
140 | | - rustup toolchain install nightly |
141 | | - rustup default nightly |
142 | | - rustup component add rustfmt |
| 138 | + - name: Install Rust toolchain |
| 139 | + uses: dtolnay/rust-toolchain@nightly |
| 140 | + with: |
| 141 | + components: rustfmt |
143 | 142 |
|
144 | 143 | - name: Check style |
145 | 144 | run: cargo fmt --all -- --check |
@@ -183,14 +182,7 @@ jobs: |
183 | 182 | - name: Setup sccache |
184 | 183 | uses: mozilla-actions/[email protected] |
185 | 184 |
|
186 | | - - name: Install Node |
187 | | - |
188 | | - with: |
189 | | - node-version: 20 |
190 | | - |
191 | | - - name: Install Node dependencies |
192 | | - working-directory: ./frontend |
193 | | - run: npm ci |
| 185 | + - uses: ./.github/actions/build-frontend |
194 | 186 |
|
195 | 187 | - name: Update the schemas |
196 | 188 | run: sh ./misc/update.sh |
@@ -224,11 +216,10 @@ jobs: |
224 | 216 | - name: Checkout the code |
225 | 217 | |
226 | 218 |
|
227 | | - - name: Install toolchain |
228 | | - run: | |
229 | | - rustup toolchain install 1.84.0 |
230 | | - rustup default 1.84.0 |
231 | | - rustup component add clippy |
| 219 | + - name: Install Rust toolchain |
| 220 | + |
| 221 | + with: |
| 222 | + components: clippy |
232 | 223 |
|
233 | 224 | - name: Setup OPA |
234 | 225 | uses: open-policy-agent/[email protected] |
@@ -258,10 +249,8 @@ jobs: |
258 | 249 | - name: Checkout |
259 | 250 | |
260 | 251 |
|
261 | | - - name: Install toolchain |
262 | | - run: | |
263 | | - rustup toolchain install stable |
264 | | - rustup default stable |
| 252 | + - name: Install Rust toolchain |
| 253 | + uses: dtolnay/rust-toolchain@stable |
265 | 254 |
|
266 | 255 | - name: Install nextest |
267 | 256 | uses: taiki-e/install-action@v2 |
@@ -320,27 +309,8 @@ jobs: |
320 | 309 | with: |
321 | 310 | tool: cargo-nextest |
322 | 311 |
|
323 | | - - name: Install Node |
324 | | - |
325 | | - with: |
326 | | - node-version: 20 |
327 | | - |
328 | | - - name: Install Node dependencies |
329 | | - working-directory: ./frontend |
330 | | - run: npm ci |
331 | | - |
332 | | - - name: Build the frontend |
333 | | - working-directory: ./frontend |
334 | | - run: npm run build |
335 | | - |
336 | | - - name: Setup OPA |
337 | | - uses: open-policy-agent/[email protected] |
338 | | - with: |
339 | | - version: 0.64.1 |
340 | | - |
341 | | - - name: Compile OPA policies |
342 | | - working-directory: ./policies |
343 | | - run: make |
| 312 | + - uses: ./.github/actions/build-frontend |
| 313 | + - uses: ./.github/actions/build-policies |
344 | 314 |
|
345 | 315 | - name: Download archive |
346 | 316 | uses: actions/download-artifact@v4 |
|
0 commit comments