name: Tests on: push: branches: [main] pull_request: branches: [main] # Cancel superseded runs on the same ref (e.g. new pushes to a PR). concurrency: group: tests-${{ github.ref }} cancel-in-progress: true permissions: contents: read jobs: unit: name: Unit runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: pnpm/action-setup@v4 with: version: 11 - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm test e2e: name: E2E runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: pnpm/action-setup@v4 with: version: 11 - uses: actions/setup-node@v6 with: node-version-file: .nvmrc cache: pnpm - run: pnpm install --frozen-lockfile # Chromium only on push/PR — the full Firefox/WebKit matrix runs nightly # (.github/workflows/nightly.yml). - name: Install Playwright Chromium run: pnpm exec playwright install --with-deps chromium - run: pnpm test:e2e