mirror of
https://github.com/block/buzz.git
synced 2026-10-30 14:01:37 +00:00
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:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user