Skip to content

Commit

Permalink
Enable update test for PG17
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed Oct 16, 2024
1 parent b2e6549 commit 7d7792c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 5 additions & 1 deletion scripts/test_updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand All @@ -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
Expand Down

0 comments on commit 7d7792c

Please sign in to comment.