From 17d1e57bd3e5bbb243f9cd85bdce60d713c60e22 Mon Sep 17 00:00:00 2001 From: tomjin871114 Date: Tue, 26 Mar 2024 22:12:01 +0800 Subject: [PATCH] test --- .github/workflows/lighthouse.yml | 2 +- lighthouserc.json | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 68a37d5..0199f9d 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -26,6 +26,6 @@ jobs: - name: Run lighthouseci run: | pnpm add -g @lhci/cli@0.13.x - lhci autorun --collect.staticDistDir=out + lhci autorun env: LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} diff --git a/lighthouserc.json b/lighthouserc.json index a62b25a..c7c2bae 100644 --- a/lighthouserc.json +++ b/lighthouserc.json @@ -1,10 +1,14 @@ { "ci": { "collect": { - "numberOfRuns": 1, - "settings": { - "preset": "lighthouse:recommended" - } + "startServerCommand": "npm run start", + "startServerReadyPattern": "ready on", + "url": [ + "http://localhost:3000" + ], + "settings": { + "preset": "desktop" + } }, "assert": { "assertions": {