Skip to content

Show item counts on browse levels ("18 albums" / "12 songs") #25

Show item counts on browse levels ("18 albums" / "12 songs")

Show item counts on browse levels ("18 albums" / "12 songs") #25

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build & test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build (shared, server, web)
run: npm run build
- name: Unit tests
run: npm test
- name: Install Playwright browser
run: npx playwright install --with-deps chromium
- name: End-to-end tests (Playwright + axe a11y)
run: npm run e2e
- name: Upload Playwright report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
if-no-files-found: ignore