Files
genesis-2/.gitea/workflows/ci.yaml
T
alexrg b04961a944
Deploy Function / deploy (push) Successful in 23s
Deploy Migrations to Production / deploy (push) Successful in 16s
Enhance CI workflow to preview generated types and improve error messaging
2026-03-10 08:16:42 -06:00

34 lines
924 B
YAML

name: CI
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Start Supabase local development setup
run: supabase db start
- name: Verify generated types are checked in
run: |
supabase gen types typescript --local > supabase/functions/_shared/database.types.ts
echo "----- Generated types preview -----"
head -n 40 supabase/functions/_shared/database.types.ts
echo "-----------------------------------"
if ! git diff --ignore-space-at-eol --exit-code --quiet supabase/functions/_shared/database.types.ts; then
echo "Detected uncommitted changes after build. See diff below:"
git diff supabase/functions/_shared/database.types.ts
exit 1
fi