Skip to content

merge: resolve conflicts between main and PR #129 (activate-cognitive-systems) #16

merge: resolve conflicts between main and PR #129 (activate-cognitive-systems)

merge: resolve conflicts between main and PR #129 (activate-cognitive-systems) #16

Workflow file for this run

name: Frontend
on:
push:
branches: [main]
paths:
- "svelte-frontend/**"
pull_request:
branches: [main]
paths:
- "svelte-frontend/**"
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20]
defaults:
run:
working-directory: svelte-frontend
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: svelte-frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run tests
run: npm test