Skip to content

Commit

Permalink
feat: add lighthouse check (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperadmin authored Apr 30, 2021
1 parent 34dbdb1 commit a619eca
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Lighthouse Check with Minimum Score Enforcement
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
lighthouse-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: npm install
- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
id: lighthouseCheck
with:
urls: 'https://vue-shop-e3547.firebaseapp.com/'
accessToken: ${{ secrets.LIGHTHOUSE_CHECK_GITHUB_ACCESS_TOKEN }}
author: ${{ github.actor }}
branch: ${{ github.ref }}

- name: Handle Lighthouse Check results
uses: foo-software/lighthouse-check-status-action@master
with:
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }}
minAccessibilityScore: "90"
minBestPracticesScore: "50"
minPerformanceScore: "30"
minProgressiveWebAppScore: "0"
minSeoScore: "50"

0 comments on commit a619eca

Please sign in to comment.