wcb/.github/workflows/test.yml
Ayo f320e845bb
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
chore: nightly full e2e and size limit tests
2026-07-05 16:33:10 +02:00

50 lines
1.1 KiB
YAML

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