forked from cartsnitch/cartsnitch
fix(lighthouse): use staticDistDir, drop Playwright dependency
- lighthouserc.json: replace startServerCommand:npm-run-preview with staticDistDir:./dist so LHCI serves files directly - CI workflow: remove Playwright/Chromium install step and LHCI_CHROME_PATH env var (LHCI bundles its own Puppeteer) - LHCI now uses its built-in static server + bundled Chromium Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -71,13 +71,7 @@ jobs:
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- name: Install Chromium
|
||||
run: |
|
||||
npm install -g playwright
|
||||
npx playwright install chromium
|
||||
- name: Run Lighthouse CI
|
||||
env:
|
||||
LHCI_CHROME_PATH: /home/runner/.cache/ms-playwright/chromium-1208/chrome-linux/chrome
|
||||
run: |
|
||||
npm install -g @lhci/cli
|
||||
lhci autorun
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"ci": {
|
||||
"collect": {
|
||||
"startServerCommand": "npm run preview",
|
||||
"staticDistDir": "./dist",
|
||||
"url": ["http://localhost:4173/"],
|
||||
"numberOfRuns": 1
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user