Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Playwright E2E

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Browser-specific expectations in the specs (e.g. clipboard-only
# assertions on Chromium) are asserted explicitly per project.
project: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install Playwright browsers
run: npx playwright install --with-deps ${{ matrix.project }}

- name: Build
run: pnpm build

- name: Run Playwright tests
env:
CI: true
run: pnpm playwright test --project=${{ matrix.project }}

- name: Upload Playwright HTML report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.project }}
path: playwright-report/
retention-days: 7

- name: Upload Playwright traces (retries/failures only)
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-traces-${{ matrix.project }}
path: trace/
retention-days: 7
Loading