Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommm2 committed Mar 27, 2024
1 parent da207fb commit 0ce9a08
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
pnpm install
pnpm build
- name: Run lighthouseci
- name: Run lighthouse CI
run: |
pnpm add -g @lhci/cli@0.13.x
lhci collect
lhci upload
lhci autorun --upload.target=temporary-public-storage || echo "LHCI failed"
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
37 changes: 17 additions & 20 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
{
"ci": {
"collect": {
"startServerCommand": "npm run start",
"startServerReadyPattern": "ready on",
"url": [
"http://localhost:3000",
"http://localhost:3000/blog",
"http://localhost:3000/projects",
"http://localhost:3000/about"
],
"settings": {
"preset": "desktop"
},
"upload": {
"target": "temporary-public-storage"
}
},
"assert": {
"preset": "lighthouse:no-pwa",
"assertions": {
"categories:performance": ["warn", { "minScore": 1 }],
"categories:accessibility": ["warn", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.9 }],
"categories:seo": ["warn", { "minScore": 0.9 }]
"categories:performance": [
"warn",
{ "aggregationMethod": "optimistic", "minScore": 0.95 }
],
"categories:accessibility": [
"warn",
{ "aggregationMethod": "optimistic", "minScore": 1 }
],
"categories:best-practices": [
"warn",
{ "aggregationMethod": "optimistic", "minScore": 1 }
],
"categories:seo": [
"warn",
{ "aggregationMethod": "optimistic", "minScore": 1 }
]
}
}
}
Expand Down

0 comments on commit 0ce9a08

Please sign in to comment.