fix: add pgschema apply step to CI before relay start

The relay no longer runs migrations itself — pgschema must be
invoked explicitly after Postgres is healthy and before the relay
starts.

Co-authored-by: Claude Code <noreply@anthropic.com>
Ai-assisted: true
This commit is contained in:
Alec Thomas
2026-03-19 14:39:06 +11:00
parent 688846e9bb
commit 2d24656a45
9 changed files with 122 additions and 220 deletions

View File

@@ -133,6 +133,14 @@ jobs:
wait_healthy "Postgres" "sprout-postgres"
wait_healthy "Redis" "sprout-redis"
wait_healthy "Typesense" "sprout-typesense"
- name: Apply database schema
run: ./bin/pgschema apply --file schema/schema.sql --auto-approve
env:
PGHOST: localhost
PGPORT: "5432"
PGUSER: sprout
PGPASSWORD: sprout_dev
PGDATABASE: sprout
- name: Build relay
run: cargo build -p sprout-relay
- name: Start relay