From 7d7792c1f07b3941e76adb0945f7a36127564953 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Wed, 16 Oct 2024 07:40:01 +0200 Subject: [PATCH] Enable update test for PG17 --- .github/workflows/update-test.yaml | 2 +- scripts/test_updates.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-test.yaml b/.github/workflows/update-test.yaml index 6d8e1cb16c2..bb51021ba7c 100644 --- a/.github/workflows/update-test.yaml +++ b/.github/workflows/update-test.yaml @@ -11,7 +11,7 @@ jobs: runs-on: 'ubuntu-latest' strategy: matrix: - pg: [14, 15, 16] + pg: [14, 15, 16, 17] fail-fast: false env: PG_VERSION: ${{ matrix.pg }} diff --git a/scripts/test_updates.sh b/scripts/test_updates.sh index 452501fc409..b937f9cc27c 100755 --- a/scripts/test_updates.sh +++ b/scripts/test_updates.sh @@ -26,10 +26,10 @@ max_patch_version=$(echo "${MAX_VERSION}" | awk -F. '{print $3}') # Filter versions depending on the current postgres version # Minimum version for valid update paths are as follows: -# PG 13 v7 2.1+ # PG 14 v8 2.5+ # PG 15 v8 2.9+ # PG 16 v8 2.13+ +# PG 17 v8 2.17+ for version in ${ALL_VERSIONS}; do minor_version=$(echo "${version}" | awk -F. '{print $2}') patch_version=$(echo "${version}" | awk -F. '{print $3}') @@ -54,6 +54,10 @@ for version in ${ALL_VERSIONS}; do if [ "${PG_MAJOR_VERSION}" -le 15 ]; then VERSIONS="${VERSIONS} ${version}" fi + elif [ "${minor_version}" -le 16 ]; then + if [ "${PG_MAJOR_VERSION}" -le 16 ]; then + VERSIONS="${VERSIONS} ${version}" + fi else VERSIONS="${VERSIONS} ${version}" fi