Repository navigation
Charge the Lightpanda headless browser like a training crawler #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: ci | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| jobs: | |
| test: | |
| name: install, typecheck, test, build (Bun) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # The version comes from packageManager in package.json, the same Bun the | |
| # image (.nixpacks/Dockerfile) pins. | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version-file: package.json | |
| - run: bun install --frozen-lockfile | |
| - run: bun run typecheck | |
| - run: bun run test | |
| # The build must not need the database (it runs in the image, with no | |
| # DATABASE_URL): routes that read Postgres render per request. | |
| - run: bun run build |