enhancement: add postgres support #12
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_USER: queue | |
| POSTGRES_PASSWORD: queue | |
| POSTGRES_DB: queue | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U queue -d queue" | |
| --health-interval 2s | |
| --health-timeout 2s | |
| --health-retries 20 | |
| env: | |
| DATABASE_URL: postgres://queue:queue@localhost:5432/queue | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Format check | |
| run: deno fmt --check | |
| - name: Lint | |
| run: deno lint | |
| - name: Type check | |
| run: deno task check | |
| - name: Test | |
| run: deno task test |