Skip to content

Commit

Permalink
add lighthouse on cicd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aferreira-deo committed Jun 4, 2024
1 parent f991b2c commit e969d28
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src

- name: Install necessary packages
run: npm install

- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
https://aferreira-deo.github.io/jftl-lighthouse-workshop/
configPath: './lighthouserc.json'
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
10 changes: 10 additions & 0 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ci": {
"assert": {
"assertions": {
"categories:accessibility": ["error", {"minScore": 0.9}]
}
}
}
}

0 comments on commit e969d28

Please sign in to comment.