@@ -590,44 +590,7 @@ jobs:
590590 - name : Run Lighthouse CI
591591 run : |
592592 npm install -g @lhci/cli@0.12.x
593- lhci autorun --config='{
594- "ci": {
595- "collect": {
596- "url": [
597- "http://localhost:3000/",
598- "http://localhost:3000/about",
599- "http://localhost:3000/hackathons",
600- "http://localhost:3000/leaderboard",
601- "http://localhost:3000/auth/signin",
602- "http://localhost:3000/protected/dashboard"
603- ],
604- "startServerCommand": "npm run build && npm run start",
605- "startServerReadyPattern": "Ready in|ready on|Local:",
606- "startServerReadyTimeout": 120000,
607- "numberOfRuns": 1,
608- "settings": {
609- "chromeFlags": "--no-sandbox --disable-dev-shm-usage --disable-gpu",
610- "preset": "desktop"
611- }
612- },
613- "assert": {
614- "assertions": {
615- "categories:performance": ["warn", {"minScore": 0.6}],
616- "categories:accessibility": ["warn", {"minScore": 0.85}],
617- "categories:best-practices": ["warn", {"minScore": 0.85}],
618- "categories:seo": ["warn", {"minScore": 0.8}],
619- "first-contentful-paint": ["warn", {"maxNumericValue": 3000}],
620- "largest-contentful-paint": ["warn", {"maxNumericValue": 4000}],
621- "cumulative-layout-shift": ["warn", {"maxNumericValue": 0.15}],
622- "total-blocking-time": ["warn", {"maxNumericValue": 1000}],
623- "speed-index": ["warn", {"maxNumericValue": 5000}]
624- }
625- },
626- "upload": {
627- "target": "temporary-public-storage"
628- }
629- }
630- }'
593+ lhci autorun --assert.assertions.categories:performance=warn --assert.assertions.categories:accessibility=warn --assert.assertions.categories:best-practices=warn --assert.assertions.categories:seo=warn --assert.assertions.first-contentful-paint=warn --assert.assertions.largest-contentful-paint=warn --assert.assertions.cumulative-layout-shift=warn --assert.assertions.total-blocking-time=warn --assert.assertions.speed-index=warn
631594 env :
632595 LHCI_GITHUB_APP_TOKEN : ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
633596 LHCI_TOKEN : ${{ secrets.LHCI_TOKEN }}
0 commit comments