Disable scanner throttling by commenting out the setting. #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unlighthouse Site Scan | |
| on: [push] | |
| jobs: | |
| unlighthouse-site-scan: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install Global Dependencies | |
| run: bun install -g @unlighthouse/cli puppeteer | |
| - name: Install Project Dependencies | |
| run: bun install | |
| - name: Build SvelteKit Preview | |
| run: bun run build | |
| # Run build in background and log output | |
| - name: Start Preview Server | |
| run: | | |
| bun run preview --port 4173 & | |
| echo "Waiting for preview to start on port 4173…" | |
| bunx wait-on http://localhost:4173 | |
| - name: Run Unlighthouse Assertions on Mobile & Generate Static Report | |
| run: | | |
| unlighthouse-ci \ | |
| --site http://localhost:4173 \ | |
| --config-file mobile-v1.config.ts \ | |
| --reporter lighthouseServer \ | |
| --lhci-host https://lhci-server-crimson-bush-1151.fly.dev \ | |
| --lhci-build-token ${{ secrets.LHCI_BUILD_TOKEN }} | |
| - name: Run Unlighthouse Assertions on Desktop & Generate Static Report | |
| run: | | |
| unlighthouse-ci \ | |
| --site http://localhost:4173 \ | |
| --config-file desktop-v1.config.ts \ | |
| --reporter lighthouseServer \ | |
| --lhci-host https://lhci-server-crimson-bush-1151.fly.dev \ | |
| --lhci-build-token ${{ secrets.LHCI_BUILD_TOKEN }} |