Skip to content

Update Angular to v18 #29

Update Angular to v18

Update Angular to v18 #29

Workflow file for this run

name: frontend-tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 18, 20, 22 ]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install frontend dependencies
run: |
cd client
npm ci
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Run frontend tests
run: |
cd client
ng test --watch=false --browsers=ChromeHeadless