From 56c5ed233fce0452f179f517bbee5d104bf5c244 Mon Sep 17 00:00:00 2001 From: Tushar Nankani Date: Fri, 22 Apr 2022 12:52:56 +0530 Subject: [PATCH 1/2] Create lighthouse.yaml --- .github/workflows/lighthouse.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lighthouse.yaml diff --git a/.github/workflows/lighthouse.yaml b/.github/workflows/lighthouse.yaml new file mode 100644 index 0000000..f2f31a6 --- /dev/null +++ b/.github/workflows/lighthouse.yaml @@ -0,0 +1,22 @@ +name: Lighthouse +on: [pull_request] + +jobs: + lighthouse-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Lighthouse + uses: foo-software/lighthouse-check-action@master + id: lighthouseCheck + with: + urls: 'https://tusharnankani.github.io/about' + - name: Verify Lighthouse Check results + uses: foo-software/lighthouse-check-status-action@master + with: + lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }} + minAccessibilityScore: "90" + minBestPracticesScore: "70" + minPerformanceScore: "70" +# minProgressiveWebAppScore: "50" + minSeoScore: "70" From f91eb4cd05b493243201e0db40a5c792cbfa1535 Mon Sep 17 00:00:00 2001 From: Tushar Nankani Date: Fri, 22 Apr 2022 13:04:55 +0530 Subject: [PATCH 2/2] :wrench: config: update minimum scores in action --- .github/workflows/lighthouse.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lighthouse.yaml b/.github/workflows/lighthouse.yaml index f2f31a6..7f3ddfc 100644 --- a/.github/workflows/lighthouse.yaml +++ b/.github/workflows/lighthouse.yaml @@ -16,7 +16,7 @@ jobs: with: lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }} minAccessibilityScore: "90" - minBestPracticesScore: "70" - minPerformanceScore: "70" + minBestPracticesScore: "90" + minPerformanceScore: "90" # minProgressiveWebAppScore: "50" - minSeoScore: "70" + minSeoScore: "90"