From 5e165d277edd1118b8e765b7346e77f3a077e2f5 Mon Sep 17 00:00:00 2001 From: Stockboy Steve Date: Tue, 31 Mar 2026 19:23:55 +0000 Subject: [PATCH] fix(ci): add Chrome sandbox flags and fix CHROME_PATH for Lighthouse Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 2 +- lighthouserc.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27ac4b3..fd48684 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: run: | CHROME_PATH=$(find /home/runner/.cache/ms-playwright -name chrome -type f 2>/dev/null | head -1) npm install -g @lhci/cli - LHCI_CHROME_PATH="$CHROME_PATH" lhci autorun + CHROME_PATH="$CHROME_PATH" lhci autorun --chrome-flags="--headless=new --no-sandbox" build-and-push: runs-on: runners-cartsnitch diff --git a/lighthouserc.json b/lighthouserc.json index fcc75b7..c839ba7 100644 --- a/lighthouserc.json +++ b/lighthouserc.json @@ -3,7 +3,10 @@ "collect": { "staticDistDir": "./dist", "url": ["http://localhost:4173/"], - "numberOfRuns": 1 + "numberOfRuns": 1, + "settings": { + "chromeFlags": ["--headless=new", "--no-sandbox"] + } }, "assert": { "assertions": {