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": {