diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b98c8a990c..a27cb8db8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,8 @@ jobs: image: postgis/postgis:15-master env: POSTGRES_PASSWORD: password - ports: - - 5432:5432 + volumes: + - /var/run/postgresql:/var/run/postgresql # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready @@ -46,6 +46,10 @@ jobs: --health-retries 5 steps: + - name: Setup PostgreSQL environment + run: | + echo PGHOST=/var/run/postgresql >> $GITHUB_ENV + echo PGUSER=postgres >> $GITHUB_ENV - name: 🐘 Non-durable PostgreSQL run: | psql <