0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2024-12-20 01:18:18 +00:00

chore: update test to validate installed version

This commit is contained in:
Tonye Jack 2023-11-29 15:11:59 -07:00 committed by GitHub
parent f71606658b
commit 154c34a049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,8 @@ jobs:
postgresql-version: ${{ matrix.postgresql_version }}
- name: Verify PostgreSQL
run: |
pg_dump --version
psql --version
pg_restore --version
- name: Verify PostgreSQL
run: |
pg_dump --version | grep -q "PostgreSQL ${matrix.postgresql_version}.*" # Check if the version in the output matches the version in the matrix
psql --version | grep -q "psql (PostgreSQL) ${matrix.postgresql_version}.*" # Check if the version in the output matches the version in the matrix
pg_restore --version | grep -q "pg_restore (PostgreSQL) ${matrix.postgresql_version}.*" # Check if the version in the output matches the version in the matrix