Skip to content

ci: expand pull request quality gate with production build verification #2

ci: expand pull request quality gate with production build verification

ci: expand pull request quality gate with production build verification #2

Workflow file for this run

name: CI
on:
push:
branches: ["develop"]
pull_request:
branches: ["master", "develop"]
jobs:
quality-gate:
name: Quality gate
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./nav-app/
steps:
- uses: actions/checkout@v4
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: 'nav-app/.nvmrc'
cache: 'npm'
cache-dependency-path: nav-app/package-lock.json
- name: Install
run: npm ci --ignore-scripts
- name: Run Jasmine tests
run: npm run test -- --code-coverage --no-watch --browsers ChromeHeadlessCI
- name: Verify production build
run: npm run build -- --configuration production --aot=false
- name: Archive code coverage results
uses: actions/upload-artifact@v4
if: always()
with:
name: code-coverage-report
path: nav-app/coverage/chrome/