bulk-questionnaire-upload/.github/workflows/frontend.yml

41 lines
861 B
YAML

name: Frontend CI
on:
push:
branches: [ main ]
paths:
- 'frontend/**'
- 'tests/frontend/**'
- '.github/workflows/frontend.yml'
pull_request:
branches: [ main ]
paths:
- 'frontend/**'
- 'tests/frontend/**'
- '.github/workflows/frontend.yml'
jobs:
frontend-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build (type-check + Angular compilation)
run: npm run build
- name: Run Vitest
run: npm run test:run