Skip to content

Commit

Permalink
Merge branch 'main' into github-action-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
marion-sgr authored Jun 12, 2024
2 parents 53f8272 + f486746 commit 1e7919e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lighthouse-check-github-action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lighthouse
on: [pull_request]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
- name: Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
urls: ${{ steps.now.outputs.preview-url }}
prCommentEnabled: true
gitAuthor: ${{ github.actor }}
gitBranch: ${{ github.ref }}
sha: ${{ github.sha }}
- name: Verify Lighthouse Check results
uses: foo-software/lighthouse-check-status-action@master
with:
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }}
minAccessibilityScore: "70"
minBestPracticesScore: "50"
minPerformanceScore: "50"
minProgressiveWebAppScore: "50"
minSeoScore: "50"

0 comments on commit 1e7919e

Please sign in to comment.