From 6636b2847253f5d744aad085bfa2f8eb265e97f2 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Mon, 30 Mar 2026 19:35:33 +0000 Subject: [PATCH] fix(lighthouse): set LHCI_CHROME_PATH via runtime discovery - Re-add Playwright Chromium install (LHCI needs a Chrome binary) - Use `find` at runtime to locate Playwright's chrome binary: CHROME_PATH=$(find /home/runner/.cache/ms-playwright -name chrome ...) - Pass to LHCI via LHCI_CHROME_PATH env var so LHCI does not try (and fail) to auto-download Puppeteer's Chromium Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d9e9b8..57eb8d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,10 +71,15 @@ jobs: cache: npm - run: npm ci - run: npm run build + - name: Install Chromium for Lighthouse + run: | + npm install -g playwright + npx playwright install chromium - name: Run Lighthouse CI run: | + CHROME_PATH=$(find /home/runner/.cache/ms-playwright -name chrome -type f 2>/dev/null | head -1) npm install -g @lhci/cli - lhci autorun + LHCI_CHROME_PATH="$CHROME_PATH" lhci autorun build-and-push: runs-on: runners-cartsnitch