CI: run the browser tests on Debian's chromium
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:
1 parent
a8ce535f37
commit
49ea6c54ae
4 files changed
+11
-6
No files matched your search
@@ -23,7 +23,7 @@ const RELEASE = JSON.stringify({ tag_name: "build-9", assets: [
|
||||
});
|
||||
}).listen(0);
|
||||
const BASE = `http://localhost:${srv.address().port}`;
|
||||
const b = await chromium.launch();
|
||||
const b = await chromium.launch({ executablePath: process.env.CHROMIUM_PATH || undefined });
|
||||
const p = await b.newPage({ viewport: { width: 390, height: 780 } });
|
||||
p.on("pageerror", (e) => { console.error("page error:", e.message); process.exitCode = 1; });
|
||||
await p.addInitScript((release) => {
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ const serve = () => new Promise((resolve) => {
|
||||
const [srv, served] = process.env.BASE ? [null, process.env.BASE] : await serve();
|
||||
const BASE = served;
|
||||
const shot = async (p, name) => { if (process.env.SHOTS) await p.screenshot({ path: path.join(process.env.SHOTS, name + ".png") }); };
|
||||
const b = await chromium.launch();
|
||||
const b = await chromium.launch({ executablePath: process.env.CHROMIUM_PATH || undefined });
|
||||
const p = await b.newPage({ viewport: { width: 390, height: 780 } });
|
||||
p.on("pageerror", (e) => { console.error("page error:", e.message); process.exitCode = 1; });
|
||||
|
||||
|
||||
Reference in new issue
Block a user