From 3f3a81d14ce3466c7a22ba67f67663c30332c5f6 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 4 Mar 2025 10:59:51 -0600 Subject: [PATCH] pass in env vars --- .github/workflows/main.yml | 4 ++++ test/setup_db.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b484ab6b604..04cfb2594f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -209,6 +209,10 @@ jobs: - name: Run postgres setup script run: | ./test/setup_db.sh + env: + PGHOST: localhost + PGPORT: 5432 + PGPASSWORD: password # - name: Set up postgres (linux) # # if: runner.os == 'Linux' diff --git a/test/setup_db.sh b/test/setup_db.sh index 078240e8726..0cbc4faa598 100755 --- a/test/setup_db.sh +++ b/test/setup_db.sh @@ -9,7 +9,7 @@ PGUSER="${PGUSER:-postgres}" export PGUSER PGPORT="${PGPORT:-5432}" export PGPORT -PGHOST="${PGHOST:-postgres}" +PGHOST="${PGHOST:-localhost}" for i in {1..10}; do if pg_isready -h "${PGHOST}" -p "${PGPORT}" -U "${PGUSER}" ; then