-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Lighthouse automated reports for production
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"path": "/*", | ||
"resourceSizes": [ | ||
{ | ||
"resourceType": "document", | ||
"budget": 18 | ||
}, | ||
{ | ||
"resourceType": "total", | ||
"budget": 200 | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |