Commit
run schema and seed smoke test in ci
commit
41f0a54
1 changed file with +25 and −0
modified .github/workflows/ci.yml +25 −0
| @@ -9,6 +9,26 @@jobs: | ||
| 9 | 9 | quality: |
| 10 | 10 | name: lint · typecheck · test · build |
| 11 | 11 | runs-on: ubuntu-latest |
| 12 | + | |
| 13 | + services: | |
| 14 | + postgres: | |
| 15 | + image: postgres:16-alpine | |
| 16 | + env: | |
| 17 | + POSTGRES_USER: roundtable | |
| 18 | + POSTGRES_PASSWORD: roundtable | |
| 19 | + POSTGRES_DB: roundtable | |
| 20 | + ports: | |
| 21 | + - 5432:5432 | |
| 22 | + options: >- | |
| 23 | + --health-cmd "pg_isready -U roundtable" | |
| 24 | + --health-interval 5s | |
| 25 | + --health-timeout 5s | |
| 26 | + --health-retries 10 | |
| 27 | + | |
| 28 | + env: | |
| 29 | + DATABASE_URL: postgresql://roundtable:roundtable@localhost:5432/roundtable?schema=public | |
| 30 | + ENCRYPTION_KEY: '+s0sM+HW2k7YOW3uJxtmVM85xcJ18REhy4tEYF46ALM=' | |
| 31 | + | |
| 12 | 32 | steps: |
| 13 | 33 | - uses: actions/checkout@v4 |
| 14 | 34 | |
| @@ -41,3 +61,8 @@jobs: | ||
| 41 | 61 | env: |
| 42 | 62 | SKIP_ENV_VALIDATION: '1' |
| 43 | 63 | NEXT_TELEMETRY_DISABLED: '1' |
| 64 | + | |
| 65 | + - name: Schema + seed smoke test | |
| 66 | + run: | | |
| 67 | + pnpm prisma db push --skip-generate | |
| 68 | + pnpm db:seed |