diff --git a/.github/actions/setup-test-environment/action.yml b/.github/actions/setup-test-environment/action.yml index 4ab172100..740795a88 100644 --- a/.github/actions/setup-test-environment/action.yml +++ b/.github/actions/setup-test-environment/action.yml @@ -51,6 +51,14 @@ runs: env: DATABASE_URL: postgres://postgres:postgres@127.0.0.1:54322/postgres + - name: Seed Database + shell: bash + run: | + # Use hardcoded default credentials for local Supabase + PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -f ./api/libs/database/setup.sql + env: + DATABASE_URL: postgres://postgres:postgres@127.0.0.1:54322/postgres # Also set here just in case seed script needs it + - name: Seed Database shell: bash run: |