Files
MSE-PI-E2EEDA-Plein-de-eeee…/.github/workflows
khalil-bot 387607a664 ci(ui): restrict Docker/deploy to main and inject API credentials
- Docker build & push and deploy jobs now run only on main (if: github.ref)
  so feature branches no longer trigger deploys
- Add Inject API credentials step before prod build: sed replaces
  __API_USERNAME__ and __API_PASSWORD__ placeholders using GitHub Secrets

Closes #38

Assisted-by: Claude:claude-sonnet-4-6
2026-05-19 14:20:50 +02:00
..

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 main branch

Pipeline Stages

  1. Checkout - Clone repository
  2. Setup Node.js - Install Node 20.x with npm cache
  3. Install Dependencies - Run npm ci
  4. Type Check - Run npx tsc --noEmit
  5. Lint - Run npm run lint
  6. Format Check - Run npm run format:check
  7. Build Dev - Build development configuration
  8. Build Prod - Build production configuration
  9. Test - Run unit tests with coverage
  10. 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