Skip to content

Commit 8ced237

Browse files
committed
ci: build the Workbench frontend on PRs
Add a `web` job (npm ci && npm run build) so a broken frontend — vite/config error, stale package-lock, JS error — is caught at PR time instead of only in publish.yml after a release tag is pushed. Mirrors the release build step and its pinned action SHAs.
1 parent 7b7107b commit 8ced237

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,23 @@ jobs:
5151

5252
- name: Pytest
5353
run: uv run --no-sync pytest
54+
55+
# Build the Workbench SPA so a broken frontend (vite/config error, stale
56+
# package-lock, JS error) is caught here at PR time rather than only in
57+
# publish.yml after a release tag is pushed. Mirrors the release build step.
58+
web:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
62+
with:
63+
persist-credentials: false
64+
65+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
66+
with:
67+
node-version: "20"
68+
69+
- name: Build Workbench web bundle
70+
working-directory: frontend
71+
run: |
72+
npm ci
73+
npm run build

0 commit comments

Comments
 (0)