ci(ci): supabase job — start stack, pgTAP on the real image, generated types diff
This commit is contained in:
1 parent
ab04b2e43d
commit
5511a2158a
1 file changed
+21
-1
+21
-1
@@ -1,5 +1,6 @@
|
||||
# Gitea Actions (same syntax as GitHub Actions). Runs on the self-hosted forge
|
||||
# runner; no external provider. No Supabase dependency at this stage.
|
||||
# runner; no external provider. The check job covers the SQL layer through the
|
||||
# PGlite harness (no Docker); the supabase job replays it on the real stack.
|
||||
name: ci
|
||||
|
||||
on:
|
||||
@@ -30,3 +31,22 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Docker image builds (runner needs a Docker daemon)
|
||||
run: docker build -t faunosteo:ci .
|
||||
|
||||
supabase:
|
||||
runs-on: ubuntu-latest
|
||||
needs: check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
- run: corepack enable && corepack prepare --activate
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- name: Start the local stack (runner needs a Docker daemon); applies migrations + seed
|
||||
run: pnpm supabase start
|
||||
- name: pgTAP on the real PostgreSQL image
|
||||
run: pnpm db:test
|
||||
- name: Generated types match the schema
|
||||
run: pnpm db:types:check
|
||||
- if: always()
|
||||
run: pnpm supabase stop --no-backup
|
||||
Reference in new issue
Block a user