name: CI on: push: branches: [main] pull_request: jobs: web: runs-on: ubuntu-latest services: postgres: image: postgres:18-alpine env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: nestri ports: - 5432:5432 options: >- --health-cmd "pg_isready -U postgres" --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 with: bun-version: 1.3.11 - name: Install run: bun install --frozen-lockfile - name: Push migrations run: bun run db:push env: DATABASE_URL: postgres://postgres:postgres@localhost:5432/nestri - name: Test run: bun test env: TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/nestri