From 21f166ec887fc773598096f5015f68491ae62f45 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 11 Sep 2023 20:55:58 -0600 Subject: [PATCH] Updated the test --- .github/workflows/test.yml | 5 +++++ entrypoint.sh | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8c9451..e6fa307 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,3 +34,8 @@ jobs: uses: ./ with: postgresql_version: ${{ matrix.postgresql_version }} + - name: Verify PostgreSQL + run: | + pg_dump --version + psql --version + pg_restore --version diff --git a/entrypoint.sh b/entrypoint.sh index 9290fe7..4812762 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -52,13 +52,10 @@ echo "Verifying installation..." # Verify installation by running pg_dump directly if [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then - "C:\\Program Files\\PostgreSQL\\$INPUT_POSTGRESQL_VERSION\\bin\\pg_dump" --version echo "C:\\Program Files\\PostgreSQL\\$INPUT_POSTGRESQL_VERSION\\bin" >> $GITHUB_PATH elif [[ "$(uname -s)" == "Darwin" ]]; then - "/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin/pg_dump" --version echo "/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin" >> $GITHUB_PATH else - "/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version echo "/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin" >> $GITHUB_PATH fi