@@ -590,44 +590,13 @@ 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+ env :
594+ LHCI_GITHUB_APP_TOKEN : ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
595+ LHCI_TOKEN : ${{ secrets.LHCI_TOKEN }}
596+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
597+ NEXT_PUBLIC_SUPABASE_URL : ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
598+ NEXT_PUBLIC_SUPABASE_ANON_KEY : ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
599+ SUPABASE_SERVICE_ROLE_KEY : ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
631600 env :
632601 LHCI_GITHUB_APP_TOKEN : ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
633602 LHCI_TOKEN : ${{ secrets.LHCI_TOKEN }}
0 commit comments