Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,44 @@ jobs:
- name: Run Lighthouse CI
run: |
npm install -g @lhci/cli@0.12.x
lhci autorun
lhci autorun --config='{
"ci": {
"collect": {
"url": [
"http://localhost:3000/",
"http://localhost:3000/about",
"http://localhost:3000/hackathons",
"http://localhost:3000/leaderboard",
"http://localhost:3000/auth/signin",
"http://localhost:3000/protected/dashboard"
],
"startServerCommand": "npm run build && npm run start",
"startServerReadyPattern": "Ready in|ready on|Local:",
"startServerReadyTimeout": 120000,
"numberOfRuns": 1,
"settings": {
"chromeFlags": "--no-sandbox --disable-dev-shm-usage --disable-gpu",
"preset": "desktop"
}
},
"assert": {
"assertions": {
"categories:performance": ["warn", {"minScore": 0.6}],
"categories:accessibility": ["warn", {"minScore": 0.85}],
"categories:best-practices": ["warn", {"minScore": 0.85}],
"categories:seo": ["warn", {"minScore": 0.8}],
"first-contentful-paint": ["warn", {"maxNumericValue": 3000}],
"largest-contentful-paint": ["warn", {"maxNumericValue": 4000}],
"cumulative-layout-shift": ["warn", {"maxNumericValue": 0.15}],
"total-blocking-time": ["warn", {"maxNumericValue": 1000}],
"speed-index": ["warn", {"maxNumericValue": 5000}]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}'
Comment thread
codeunia-dev marked this conversation as resolved.
Outdated
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }}
Expand Down
Loading