Skip to content

Commit 35a17ac

Browse files
committed
Add performance assertions in LH
1 parent 733eedf commit 35a17ac

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/lighthouse.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
with:
4242
runs: 3
4343
temporaryPublicStorage: true
44+
configPath: ./.github/workflows/lighthouserc.json
4445
urls: |
4546
https://mars-theme-frontity.worona.now.sh/
4647
https://mars-theme-frontity.worona.now.sh/2016/the-beauties-of-gullfoss/

.github/workflows/lighthouserc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"assertions": {
3+
"categories:performance": ["error", { "minScore": 0.99 }],
4+
"categories:accessibility": ["error", { "minScore": 1 }],
5+
"categories:best-practices": ["error", { "minScore": 1 }],
6+
"categories:seo": ["error", { "minScore": 0.97 }]
7+
}
8+
}

0 commit comments

Comments
 (0)