Add lighthouse score check (#837)
* Add lighthouse check Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix URL Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
434061ea6b
commit
93dc9dbb26
1 changed files with 24 additions and 0 deletions
24
.github/workflows/pull-request.yml
vendored
24
.github/workflows/pull-request.yml
vendored
|
@ -49,6 +49,30 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|
||||||
|
lighthouse-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Waiting for Netlify Preview
|
||||||
|
uses: kamranayub/wait-for-netlify-action@v2.1.1
|
||||||
|
id: preview
|
||||||
|
with:
|
||||||
|
site_name: "toha-ci"
|
||||||
|
max_timeout: 300
|
||||||
|
env:
|
||||||
|
NETLIFY_TOKEN: ${{secrets.NETLIFY_TOKEN}}
|
||||||
|
|
||||||
|
- name: Run Lighthouse
|
||||||
|
uses: foo-software/lighthouse-check-action@v10.0.0
|
||||||
|
id: lighthouseCheck
|
||||||
|
with:
|
||||||
|
accessToken: ${{ secrets.LIGHTHOUSE_TOKEN }}
|
||||||
|
gitHubAccessToken: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
emulatedFormFactor: 'all'
|
||||||
|
prCommentEnabled: true
|
||||||
|
prCommentSaveOld: false
|
||||||
|
timeout: 5
|
||||||
|
urls: "${{ steps.preview.outputs.url }},${{ steps.preview.outputs.url }}/posts/,${{ steps.preview.outputs.url }}/posts/markdown-sample/,${{ steps.preview.outputs.url }}/posts/shortcodes/"
|
||||||
|
|
||||||
# Ensure that PR has desired labels
|
# Ensure that PR has desired labels
|
||||||
enforce-label:
|
enforce-label:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue