From a7b926461b8daf46e7a9c8fb216c2ed2fa0543eb Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Tue, 30 Jan 2024 10:54:51 -0500 Subject: [PATCH] try services approach --- .github/workflows/integration-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 2c4e311c..9a16cce3 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -50,15 +50,15 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - - name: Look for postgres - shell: bash - run: pg_isready -h localhost -p 5432 -d postgres -U postgres - - name: Setup postgres shell: bash - run: psql -h localhost -p 5432 -d postgres -U postgres -c "select 1" + run: psql -f ./scripts/setup_test_database.sql env: + PGHOST: localhost + PGPORT: 5432 + PGUSER: postgres PGPASSWORD: postgres + PGDATABASE: postgres - name: Setup `hatch` uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main