Skip to content

Merge pull request #60 from SCAI-BIO/configure-api-prod-url #6

Merge pull request #60 from SCAI-BIO/configure-api-prod-url

Merge pull request #60 from SCAI-BIO/configure-api-prod-url #6

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 ]
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