Commit 1e7265c
Add frontend build job to PR workflow (#1099)
## Summary
Adds a `frontend-build` job to the PR Build and Test workflow
(`.github/workflows/PR-Build-And-Test.yml`) so that npm package and Vite
build issues are caught on every PR before they reach the full
build/deploy pipeline.
## Changes
- New `frontend-build` job that:
1. Checks out the repo
2. Sets up Node.js 26 (matching the Dockerfile's
`node:26-bookworm-slim`)
3. Caches npm dependencies via `package-lock.json`
4. Runs `npm ci` in `EssentialCSharp.Web/`
5. Runs `npm run build` (Vite build) in `EssentialCSharp.Web/`
This mirrors the `frontend-build` stage in the Dockerfile exactly,
ensuring PRs are validated against the same build path used in
production.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>1 parent d074fee commit 1e7265c
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
10 | 30 | | |
11 | 31 | | |
12 | 32 | | |
| |||
0 commit comments