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
26 changes: 23 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# its browsers. Move back to ubuntu-latest after upgrading @playwright/test to
# a release that supports 26.04.
runs-on: ubuntu-24.04
timeout-minutes: 30
timeout-minutes: 40
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -31,8 +31,28 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Install Playwright browsers and system dependencies
run: npx playwright install --with-deps
# Only Chromium is used (see playwright.config.ts). Installing every
# browser's system packages pulls ~180 apt packages, and the runner's
# Ubuntu mirror intermittently serves them at a few KB/s, so a stalled
# download used to consume the whole job timeout. Bound the apt step and
# retry it once: a fresh attempt usually gets a healthy connection and
# reuses the packages already downloaded.
- name: Install Playwright system dependencies (Chromium)
id: playwright-deps
continue-on-error: true
timeout-minutes: 12
run: npx playwright install-deps chromium

- name: Retry Playwright system dependencies (Chromium)
if: steps.playwright-deps.outcome == 'failure'
timeout-minutes: 10
run: |
sudo dpkg --configure -a
npx playwright install-deps chromium

- name: Install Playwright Chromium
timeout-minutes: 5
run: npx playwright install chromium

- name: Run e2e tests
run: npm run test:e2e
Expand Down
Loading