Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommm2 committed Mar 26, 2024
1 parent 974a9c4 commit 14216f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install && npm install -g @lhci/cli@0.13.x
node-version: 19
- run: npm install -g pnpm && pnpm add -g @lhci/cli@0.13.x
- run: pnpm run build
- run: lhci collect
- run: lhci upload
- run: lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
26 changes: 11 additions & 15 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
{
"ci": {
"collect": {
"startServerCommand": "npm run start",
"startServerReadyPattern": "ready on",
"url": [
"http://localhost:3000"
],
"numberOfRuns": 1,
"settings": {
"preset": "desktop"
}
},
"assert": {
"numberOfRuns": 1,
"settings": {
"preset": "lighthouse:recommended"
}
},
"upload": {
"target": "temporary-public-storage"
},
"server": {}
"assert": {
"assertions": {
"categories:performance": ["warn", { "minScore": 0.9 }],
"categories:accessibility": ["warn", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.9 }],
"categories:seo": ["warn", { "minScore": 0.9 }]
}
}
}
}

0 comments on commit 14216f3

Please sign in to comment.