Skip to content

Commit

Permalink
ci: upload lhci results to github
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Mar 1, 2024
1 parent dd7cc42 commit 95f7574
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ jobs:
- run: ./gradlew classes
- run: yarn install
- name: Run Lighthouse CI
run: npx lhci autorun
env:
PROJECT_TOKEN: ${{ vars.LHCI_PROJECT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.LHCI_GITHUB_TOKEN }}
BASIC_AUTH_USERNAME: ${{ secrets.LHCI_BASIC_AUTH_USERNAME }}
BASIC_AUTH_PASSWORD: ${{ secrets.LHCI_BASIC_AUTH_PASSWORD }}
run: |
npx lhci collect
npx lhci assert
- name: Upload Lighthouse CI results
uses: actions/upload-artifact@v4
if: always()
with:
name: lighthouse-ci-results-${{ github.run_id }}-${{ github.sha }}
path: .lighthouseci/
retention-days: 30

0 comments on commit 95f7574

Please sign in to comment.