Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 20 additions & 8 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ on:

jobs:
e2e:
name: E2E (Playwright)
name: E2E (Playwright, ${{ matrix.browser }})
runs-on: ubuntu-latest
timeout-minutes: 25
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
browser:
- chromium
- webkit

steps:
- name: Checkout
Expand All @@ -26,36 +32,42 @@ jobs:
uses: actions/setup-node@v6.2.0
with:
node-version: '24.14.0'
cache: npm

- name: Install Dependencies
run: npm ci

- name: Check Types
run: npm run check-types

- name: Lint Playwright Files
run: npm run lint:playwright
- name: Cache Playwright Browsers
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ matrix.browser }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-playwright-${{ matrix.browser }}-

- name: Install Browsers
run: npx playwright install --with-deps chromium webkit
run: npx playwright install --with-deps ${{ matrix.browser }}

- name: Run Playwright Tests
env:
CI: 'true'
run: npm run test:e2e
run: npm run test:e2e -- --project=${{ matrix.browser }}

- name: Upload Playwright report
uses: actions/upload-artifact@v6.0.0
if: ${{ failure() }}
with:
name: playwright-report
name: playwright-report-${{ matrix.browser }}
path: playwright-report
if-no-files-found: ignore

- name: Upload Playwright test results
uses: actions/upload-artifact@v6.0.0
if: ${{ failure() }}
with:
name: test-results
name: test-results-${{ matrix.browser }}
path: test-results
if-no-files-found: ignore
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default defineConfig({
testDir: 'playwright',
timeout: isCI ? 120_000 : 20_000,
retries: isCI ? 1 : 0,
workers: isCI ? 2 : undefined,
expect: {
timeout: isCI ? 90_000 : 15_000,
},
Expand Down