From e322b6cff9dbddeead6a5abf104a3a3cc805283d Mon Sep 17 00:00:00 2001 From: dal Date: Fri, 2 May 2025 16:31:09 -0600 Subject: [PATCH] setup.sql in the env setup --- .github/actions/setup-test-environment/action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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: |