From 154c34a0495819ef4614941a2ee94112e5a51157 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 Nov 2023 15:11:59 -0700 Subject: [PATCH] chore: update test to validate installed version --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 211d2eb..6851f67 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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