Skip to content

Add frontend build job to PR workflow#1099

Merged
BenjaminMichaelis merged 3 commits into
mainfrom
copilot/add-frontend-test-job
May 14, 2026
Merged

Add frontend build job to PR workflow#1099
BenjaminMichaelis merged 3 commits into
mainfrom
copilot/add-frontend-test-job

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

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.

Copilot AI and others added 2 commits May 13, 2026 13:18
Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/fbba773e-6096-4a94-bbee-7b81246100f1

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/fbba773e-6096-4a94-bbee-7b81246100f1

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated frontend-build job to the PR CI workflow so npm/Vite build failures are surfaced during PR validation (intended to mirror the Dockerfile’s frontend build stage).

Changes:

  • Add frontend-build job that checks out code, sets up Node.js, caches npm deps, runs npm ci, and runs npm run build under EssentialCSharp.Web/.

Comment thread .github/workflows/PR-Build-And-Test.yml
Comment thread .github/workflows/PR-Build-And-Test.yml
Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/2700a888-9644-4b61-91b0-5a23e223672e

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
@BenjaminMichaelis BenjaminMichaelis merged commit 1e7265c into main May 14, 2026
8 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the copilot/add-frontend-test-job branch May 14, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants