diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 513153bc..1a013616 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -594,6 +594,7 @@ jobs: env: LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload performance results uses: actions/upload-artifact@v4 diff --git a/lighthouserc.js b/lighthouserc.js index 5aee36ce..7fee5f8b 100644 --- a/lighthouserc.js +++ b/lighthouserc.js @@ -9,7 +9,7 @@ module.exports = { 'http://localhost:3000/auth/signin', 'http://localhost:3000/protected/dashboard' ], - startServerCommand: 'npm run start', + startServerCommand: 'npm run build && npm run start', startServerReadyPattern: 'ready on', startServerReadyTimeout: 30000, numberOfRuns: 3,