Skip to content

Commit 332c8ac

Browse files
committed
Update windows CI workflow to build frontend for testing
1 parent 8adf934 commit 332c8ac

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
@@ -81,6 +81,10 @@ jobs:
8181
test_on_windows:
8282
name: Test on Windows
8383
runs-on: windows-latest
84+
strategy:
85+
matrix:
86+
node-version: [20.x]
87+
8488
steps:
8589
- name: Checkout the source code
8690
uses: actions/checkout@v2
@@ -102,6 +106,17 @@ jobs:
102106
env:
103107
RUSTFLAGS: -Dwarnings
104108

109+
- name: Use Node.js ${{ matrix.node-version }}
110+
uses: actions/setup-node@v3
111+
with:
112+
node-version: ${{ matrix.node-version }}
113+
114+
- name: Build frontend for testing
115+
run: |
116+
npm ci
117+
npm run build
118+
working-directory: ./site/frontend
119+
105120
- name: Run unit tests
106121
run: cargo test --all
107122

0 commit comments

Comments
 (0)