Fixes Chrome crashing in the CI container during Lighthouse
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user