Skip to content

Commit

Permalink
Add Lighthouse config
Browse files Browse the repository at this point in the history
  • Loading branch information
curt-mitch-census committed Nov 28, 2023
1 parent 934cdc5 commit 136656a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/lighthouse/lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
ci: {
upload: {
target: 'temporary-public-storage',
},
assert: {
preset: 'lighthouse:recommended',
},
assertions: {
'bf-cache': 'off',
'canonical': 'off',
'csp-xss': 'off',
'image-size-responsive': 'off',
'maskable-icon': 'off',
'robots-txt': 'off',
'service-worker': 'off',
'splash-screen': 'off',
'themed-omnibox': 'off',
'unsized-images': 'off',
'unused-css-rules': 'off',
'unused-javascript': 'off',
'uses-optimized-images': 'off',
'uses-responsive-images': 'off',
'heading-order': 'off',
'link-text': 'off',
},
},
};
12 changes: 2 additions & 10 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,8 @@ jobs:
bundle install
bundle exec jekyll build
- name: run Lighthouse CI
with:
configPath: ".github/lighthouse/lighthouserc.js"
run: |
npm install -g @lhci/[email protected]
lhci autorun
# - name: Audit URLs using Lighthouse
# uses: treosh/lighthouse-ci-action@v10
# with:
# urls: |
# https://example.com/
# https://example.com/blog
# budgetPath: ./budget.json # test performance budgets
# configPath: ".github/lighthouse/lighthouserc.js"
# uploadArtifacts: true # save results as an action artifacts
# temporaryPublicStorage: true # upload lighthouse report to the temporary storage

0 comments on commit 136656a

Please sign in to comment.