Description:
We need to verify that the frontend builds correctly on every commit to avoid deploying broken UI code.
Task:
Create a GitHub Actions workflow file at .github/workflows/build.yml.
Implementation Details:
YAML
name: Utility Dashboard Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm run build
Acceptance Criteria:
[ ] Workflow installs dependencies.
[ ] npm run build completes without errors.
Priority: Critical
Labels: devops, ci
Description:
We need to verify that the frontend builds correctly on every commit to avoid deploying broken UI code.
Task:
Create a GitHub Actions workflow file at .github/workflows/build.yml.
Implementation Details:
YAML
name: Utility Dashboard Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm run build
Acceptance Criteria:
[ ] Workflow installs dependencies.
[ ] npm run build completes without errors.
Priority: Critical
Labels: devops, ci