feat: per-connection session setup SQL (survives connection pooling) #96
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: bun run lint | |
| - name: Format check | |
| run: bun run format:check | |
| - name: Type check | |
| run: bun run typecheck | |
| - name: Test (unit — no external DB required) | |
| run: | | |
| shopt -s extglob | |
| bun test tests/!(pg-*|postgres-*|mysql-*|multi-database|driver-iterate|ui-store).test.ts | |
| integration: | |
| runs-on: ubuntu-latest | |
| needs: check | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Start docker-compose services | |
| run: docker compose up -d --wait | |
| - name: Test (integration — requires docker) | |
| run: | | |
| shopt -s extglob | |
| bun test tests/@(pg-*|postgres-*|mysql-*|multi-database|driver-iterate).test.ts | |
| - name: Show docker-compose logs on failure | |
| if: failure() | |
| run: docker compose logs --tail=200 | |
| - name: Stop docker-compose services | |
| if: always() | |
| run: docker compose down |