fix: site audit improvements — a11y, perf, SEO, DX #9
Workflow file for this run
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: Lighthouse CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lighthouse: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build project | |
| run: bun run build | |
| - name: Start server | |
| run: bun start & | |
| env: | |
| PORT: 3000 | |
| - name: Wait for server | |
| run: bunx wait-on http://localhost:3000 | |
| - name: Run Lighthouse CI (Mobile) | |
| uses: treosh/lighthouse-ci-action@v11 | |
| with: | |
| urls: | | |
| http://localhost:3000/en | |
| http://localhost:3000/en/resources | |
| configPath: "./lighthouserc.json" | |
| uploadArtifacts: true | |
| temporaryPublicStorage: true | |
| artifactName: lighthouse-results-mobile | |
| - name: Run Lighthouse CI (Desktop) | |
| uses: treosh/lighthouse-ci-action@v11 | |
| with: | |
| urls: | | |
| http://localhost:3000/en | |
| http://localhost:3000/en/resources | |
| configPath: "./lighthouserc-desktop.json" | |
| uploadArtifacts: true | |
| temporaryPublicStorage: true | |
| artifactName: lighthouse-results-desktop |