Fixes Chrome crashing in the CI container during Lighthouse
Continuous Integration / check (pull_request) Successful in 6m10s
Continuous Integration / lighthouse (pull_request) Failing after 9m39s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped

The container's /dev/shm is limited to 64 MB, which makes the browser
tab crash on the image-heavy home page. Chrome now uses /tmp instead
via --disable-dev-shm-usage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 00:56:27 +02:00
co-authored by Claude Opus 5.5
parent b8adcd5f93
commit 295adc2a9c
2 changed files with 18 additions and 3 deletions
+6 -3
View File
@@ -135,11 +135,14 @@ jobs:
echo "CHROME_PATH=$CHROME_PATH" >> "$GITHUB_ENV"
"$CHROME_PATH" --version
# Als root in een container weigert Chrome te starten zonder --no-sandbox
# (gelezen door lighthouserc.cjs, zie daar waarom niet via LHCI_*)
# Chrome in een container (gelezen door lighthouserc.cjs, zie daar waarom
# niet via LHCI_*):
# --no-sandbox: als root weigert Chrome anders te starten
# --disable-dev-shm-usage: /dev/shm is in een container maar 64 MB; met
# de grote hero-foto's crasht het tabblad anders (TARGET_CRASHED)
- name: Lighthouse
env:
LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new'
LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new --disable-dev-shm-usage'
run: pnpm lighthouse
deploy-test: