Skip to content

Commit

Permalink
👷 setup Lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
InkoHX committed Apr 23, 2024
1 parent 2ec4b67 commit 1aa46b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,17 @@ jobs:
project-id: ${{ secrets.VERCEL_PROJECT_ID }}
production: ${{ github.ref == 'refs/heads/main' }}
prebuilt: true

- name: Lighthouse CI - Healthcheck
run: pnpm dlx @lhci/[email protected] healthcheck --fatal

- name: Lighthouse CI - Collect
run: |
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
pnpm dlx @lhci/[email protected] collect -n 1 --url ${{ steps.vercel.outputs.deployment-url }} --url https://www.nexterias.dev
else
pnpm dlx @lhci/[email protected] collect -n 1 --url ${{ steps.vercel.outputs.deployment-url }}
fi
- name: Lighthouse CI - Upload
run: pnpm dlx @lhci/[email protected] upload --githubToken ${{ secrets.GITHUB_TOKEN }} --target temporary-public-storage

0 comments on commit 1aa46b4

Please sign in to comment.