Skip to content

Commit 6e8c125

Browse files
committed
Update CI workflow to use Node.js 20.x and build frontend for testing
1 parent 036170f commit 6e8c125

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
test_and_deploy:
1515
name: Test and deploy
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: [20.x]
20+
1721
steps:
1822
- name: Checkout the source code
1923
uses: actions/checkout@v2
@@ -30,6 +34,17 @@ jobs:
3034
- uses: Swatinem/rust-cache@v2
3135
with:
3236
key: linux
37+
38+
- name: Use Node.js ${{ matrix.node-version }}
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: ${{ matrix.node-version }}
42+
43+
- name: Build frontend for testing
44+
run: |
45+
npm ci
46+
npm run build
47+
working-directory: ./site/frontend
3348

3449
- name: Run unit tests
3550
run: cargo test --all

0 commit comments

Comments
 (0)