From 154c34a0495819ef4614941a2ee94112e5a51157 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 Nov 2023 15:11:59 -0700 Subject: [PATCH 1/3] 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 From 91d85ad11a8c80892eab25ab7d84dc590459dc1d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 Nov 2023 15:16:44 -0700 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6851f67..7ea8ca3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,6 @@ jobs: run: | - 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 + pg_dump --version | grep -q "PostgreSQL ${{ matrix.postgresql_version }}.*" + psql --version | grep -q "psql (PostgreSQL) ${{ matrix.postgresql_version }}.*" + pg_restore --version | grep -q "pg_restore (PostgreSQL) ${{ matrix.postgresql_version }}.*" From 4e7cf0b76bf6683da8a575a6b281f567aaa11659 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 Nov 2023 15:21:25 -0700 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ea8ca3..e83e7a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,8 +37,6 @@ jobs: postgresql-version: ${{ matrix.postgresql_version }} - name: Verify PostgreSQL run: | - - name: Verify PostgreSQL - run: | - pg_dump --version | grep -q "PostgreSQL ${{ matrix.postgresql_version }}.*" + pg_dump --version | grep -q "pg_dump (PostgreSQL) ${{ matrix.postgresql_version }}.*" psql --version | grep -q "psql (PostgreSQL) ${{ matrix.postgresql_version }}.*" pg_restore --version | grep -q "pg_restore (PostgreSQL) ${{ matrix.postgresql_version }}.*"