diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index d140c1054..ab23913ab 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -77,6 +77,14 @@ jobs: run: | yarn install + # Wait for PostgreSQL + - name: Wait for PostgreSQL + run: | + until pg_isready -h localhost -p 5432; do + echo "Waiting for PostgreSQL to be ready..." + sleep 1 + done + # Initialize the DB - name: 'Setup Test DB' run: |