Commit a60a30c
committed
ci(e2e): run Playwright suite on macOS alongside Linux
macOS is the primary shipped platform but e2e only ran on Linux, so a
whole class of platform/path bugs went uncaught in CI. The afterPack
Linux-vs-macOS executable-name divergence is the canonical example:
mac uses productFilename, Linux uses executableName, and only running
the suite on both surfaces that kind of drift.
Add a fail-fast:false os matrix (ubuntu-latest, macos-latest). The
Linux-only steps stay gated so the ubuntu leg is byte-for-byte the same
work as before: the Electron-binary unzip workaround (linux-x64 zip,
dist/electron) and npx playwright install-deps are guarded with
if: matrix.os == 'ubuntu-latest', and xvfb-run wraps the suite only when
RUNNER_OS is Linux. macOS extracts dist/Electron.app via the normal
postinstall and has a real display, so it needs neither. The venv
provisioning and JLAB_TEST_PYTHON_PATH work unchanged on both. Artifacts
are named per-OS so the two legs do not clobber each other.
Note: AI-assisted (Claude Code). Manually verified: yaml parse (python yaml.safe_load) + that the ubuntu leg is unchanged (same steps, same commands, gates only add macOS); macOS leg verified by reading, not run (cannot run macOS CI locally).1 parent 4f62f36 commit a60a30c
1 file changed
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | | - | |
55 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| |||
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
70 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
71 | 88 | | |
72 | 89 | | |
73 | 90 | | |
74 | | - | |
| 91 | + | |
75 | 92 | | |
76 | 93 | | |
77 | 94 | | |
| |||
0 commit comments