Skip to content

ci(supabase): validate local stack in CI#16

Merged
Iron-Mark merged 2 commits into
mainfrom
codex/supabase-docker-ci-validation
Jul 3, 2026
Merged

ci(supabase): validate local stack in CI#16
Iron-Mark merged 2 commits into
mainfrom
codex/supabase-docker-ci-validation

Conversation

@Iron-Mark

Copy link
Copy Markdown
Owner

Summary

  • Adds a supabase-local-validation GitHub Actions job that starts Supabase via Docker, resets the local database from tracked migrations, runs the backend verifier with JSON all-pass enforcement, uploads evidence, and stops the stack.
  • Extends scripts/verify_supabase_backend.ps1 with -RequireAllPass and -OutFile so CI can fail on non-pass backend checks and archive non-secret evidence.
  • Updates release/runbook docs and source guards so Docker-local Supabase proof is owned by CI instead of the Windows release workstation.

Local verification

  • pwsh -NoProfile -File scripts/verify_supabase_backend.ps1 -ValidateOnly
  • flutter test test/scripts/release_guard_source_test.dart
  • pwsh -NoProfile -File scripts/verify_dart_format.ps1
  • flutter analyze
  • flutter test
  • scripts/store_release_build.ps1 -Target Android -RunStrictAudit -EnvFile .env -SupportEmailVerified
  • scripts/verify_store_artifacts.ps1 -Strict -RequireArtifact android-play-store-aab -RequireStrictAudit -RequireCurrentCommit

Iron-Mark added 2 commits July 3, 2026 22:53
## Summary

- Add a GitHub Actions job that starts the Supabase Docker stack and validates local migrations.

- Extend the backend verifier so CI can fail on non-pass JSON status rows and archive evidence.

- Sync release runbooks and source guards with the CI-owned Docker validation path.

## Changes Made

### GitHub Actions

- Added the supabase-local-validation job to start Supabase, reset local migrations, run backend verification, upload evidence, and stop containers.

### Verification Script

- Added -RequireAllPass and -OutFile to scripts/verify_supabase_backend.ps1.

- Kept verification SQL validation read-only and repository-contained evidence output guarded.

### Docs and Guards

- Documented CI-style local Docker backend verification in release and Supabase runbooks.

- Added release guard assertions for the new workflow and verifier behavior.

## Why

- Move Docker-local Supabase validation into CI instead of requiring Docker Desktop on the Windows release workstation.

## Notes for Reviewers

- Local validation covered the verifier static path, JSON parsing fixture, workflow YAML parsing, release guard tests, Dart format check, and git diff whitespace check.
## Summary

- Handles Supabase CLI informational preamble before JSON backend-verification output.

- Keeps CI all-pass enforcement for local Supabase backend checks.

## Changes Made

### Supabase Verification

- Added JSON payload extraction before ConvertFrom-Json parsing.

- Kept non-pass backend check failures fatal under -RequireAllPass.

### Release Guard Coverage

- Extended source guard coverage for the parser helper.

## Why

- GitHub Actions showed all Supabase backend checks passing, but the job failed because CLI preamble text preceded the JSON payload.

## Notes for Reviewers

- Local parser smoke, SQL validation, Dart format, and release guard tests passed.
@Iron-Mark Iron-Mark merged commit 756cfe8 into main Jul 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant