Skip to content

Commit

Permalink
add Lighthouse automated reports for production
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer committed Feb 21, 2024
1 parent e887890 commit d57c69a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/budget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"path": "/*",
"resourceSizes": [
{
"resourceType": "document",
"budget": 18
},
{
"resourceType": "total",
"budget": 200
}
]
}
]
17 changes: 17 additions & 0 deletions .github/workflows/lighthouse_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lighthouse CI
on: [push]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v11
with:
urls: |
https://monitor.mozilla.org
https://monitor.mozilla.org/breaches
https://monitor.mozilla.org/breaches/NazApi
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

0 comments on commit d57c69a

Please sign in to comment.