GitHub Actions Workflows
Angular CI Pipeline
Triggers
- Push: Runs on all branches when changes are made to
ui/folder - Pull Request: Runs when PR targets
mainbranch
Pipeline Stages
- Checkout - Clone repository
- Setup Node.js - Install Node 20.x with npm cache
- Install Dependencies - Run
npm ci - Type Check - Run
npx tsc --noEmit - Lint - Run
npm run lint - Format Check - Run
npm run format:check - Build Dev - Build development configuration
- Build Prod - Build production configuration
- Test - Run unit tests with coverage
- Upload Artifacts - Save build outputs and coverage reports
Local Testing
Before pushing, run locally:
cd ui
npm ci
npx tsc --noEmit
npm run lint
npm run format:check
npm run build
Troubleshooting
Node version mismatch:
# Use Node 20.x locally
nvm use 20
Cache issues:
# Clear npm cache
npm cache clean --force
rm -rf node_modules package-lock.json
npm install
Lint errors:
# Auto-fix
npm run lint -- --fix
Format errors:
# Auto-format
npm run format