mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
Updated the test
This commit is contained in:
parent
f5b80f433c
commit
21f166ec88
2 changed files with 5 additions and 3 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -34,3 +34,8 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
postgresql_version: ${{ matrix.postgresql_version }}
|
||||
- name: Verify PostgreSQL
|
||||
run: |
|
||||
pg_dump --version
|
||||
psql --version
|
||||
pg_restore --version
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue