From 5511a2158aaabb82a5b5e1b2409e84406fb9d1fc Mon Sep 17 00:00:00 2001 From: bchanot Date: Thu, 8 Oct 2026 22:46:37 +0200 Subject: [PATCH] =?UTF-8?q?ci(ci):=20supabase=20job=20=E2=80=94=20start=20?= =?UTF-8?q?stack,=20pgTAP=20on=20the=20real=20image,=20generated=20types?= =?UTF-8?q?=20diff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b0c31389..2da5724b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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