Skip to content
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ jobs:
# over-subscribed the 4-vCPU ubuntu-24.04 runner and caused timeouts.
# RUNNER_E2E is a label or a JSON array of labels. On a smaller
# runner, set the E2E_WORKERS variable to 2 as well.
# Fork PRs can't use the custom runner group and would queue forever, so
# they fall back to the 4-vCPU ubuntu-24.04 runner with 2 workers and a
# longer timeout.
runs-on:
${{ startsWith(vars.RUNNER_E2E, '[') && fromJSON(vars.RUNNER_E2E) ||
${{ github.event.pull_request.head.repo.fork && 'ubuntu-24.04' ||
startsWith(vars.RUNNER_E2E, '[') && fromJSON(vars.RUNNER_E2E) ||
vars.RUNNER_E2E || '8-core-playwright' }}
timeout-minutes: 15
timeout-minutes: ${{ github.event.pull_request.head.repo.fork && 25 || 15 }}
permissions:
contents: read
strategy:
Expand All @@ -31,7 +35,9 @@ jobs:
- name: Run Playwright tests (full-stack mode)
env:
# Unset falls back to the default in playwright.config.ts.
E2E_WORKERS: ${{ vars.E2E_WORKERS }}
E2E_WORKERS:
${{ github.event.pull_request.head.repo.fork && '2' ||
vars.E2E_WORKERS }}
run: |
cd packages/app
yarn test:e2e --shard=${{ matrix.shard }}/4
Expand Down
Loading