CI: run the browser tests on Debian's chromium
Launcher / test (pull_request) Successful in 1m11s
Launcher / apk (pull_request) Skipped

Playwright's Chromium download from cdn.playwright.dev timed out on the runner
(the only failing step; moon tests passed). Install chromium with apt, skip the
Playwright download, and let the tests take CHROMIUM_PATH. The workflow now also
runs tests/android-sim.cjs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-23 01:49:54 +00:00
1 parent a8ce535f37
commit 49ea6c54ae
4 files changed
+11 -6

No files matched your search

+8 -3
View File
@@ -37,10 +37,15 @@ jobs:
run: |
scripts/build-web.sh --demo
mkdir -p /tmp/e2e && cd /tmp/e2e && npm init -y >/dev/null
npm i --no-audit --no-fund playwright@1.65.1
npx playwright install --with-deps chromium
# Playwright's own Chromium download (cdn.playwright.dev) times out on this runner,
# so use Debian's chromium and point the tests at it.
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm i --no-audit --no-fund playwright@1.65.1
apt-get update -qq && apt-get install -y -qq --no-install-recommends chromium >/dev/null
cd "$GITHUB_WORKSPACE"
PLAYWRIGHT=/tmp/e2e/node_modules/playwright node tests/e2e.cjs
export CHROMIUM_PATH=/usr/bin/chromium
export PLAYWRIGHT=/tmp/e2e/node_modules/playwright
node tests/e2e.cjs
node tests/android-sim.cjs
apk:
needs: test