Skip to content

Commit 5fb3dd0

Browse files
ci: skip Electron binary download in test workflow
The test job ran npm install, which triggered Electron's postinstall binary download (~100MB) from its CDN. That download is never used by build or test (only examples/electron uses Electron) and intermittently fails with CDN timeouts (e.g. 504 Gateway Time-out), breaking CI. Set ELECTRON_SKIP_BINARY_DOWNLOAD=1 so the npm package still installs but skips the unused binary download. Faster, more reliable CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f3fea73 commit 5fb3dd0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ jobs:
1313
with:
1414
node-version: '22'
1515
- run: npm install
16+
env:
17+
# Engine build/test never use Electron (only examples/electron does),
18+
# so skip its large binary download to avoid flaky CDN timeouts.
19+
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
1620
- run: npm run build
1721
- run: npm test

0 commit comments

Comments
 (0)