diff --git a/.github/actions/setup-postgres-linux/action.yml b/.github/actions/setup-postgres-linux/action.yml index 51688dea..d518dac1 100644 --- a/.github/actions/setup-postgres-linux/action.yml +++ b/.github/actions/setup-postgres-linux/action.yml @@ -7,8 +7,7 @@ runs: - name: Start the postgres service shell: bash - run: echo "woohoo" -# sudo systemctl start postgresql.service -# pg_isready -# sudo chmod a+x ${{ github.action_path }}/setup_db.sh -# sudo -u postgres bash ${{ github.action_path }}/setup_db.sh + run: | + sudo systemctl start postgresql.service + pg_isready + sudo -u postgres bash ${{ github.action_path }}/setup_db.sh diff --git a/.github/actions/setup-postgres-linux/setup_db.sh b/.github/actions/setup-postgres-linux/setup_db.sh index de59bf0f..0d3f0a74 100755 --- a/.github/actions/setup-postgres-linux/setup_db.sh +++ b/.github/actions/setup-postgres-linux/setup_db.sh @@ -1,5 +1,6 @@ #!/bin/bash set -x +echo "woohoo" env | grep '^PG' # If you want to run this script for your own postgresql (run with