From 95edc2508ac2fb4a9334af5effd162707e2a3286 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 May 2024 21:35:41 -0600 Subject: [PATCH] remove: deprecated postgreSQL version 11 (#35) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- entrypoint.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b00281..65a8c5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] - postgresql_version: [11, 12, 14, 15, 16] + postgresql_version: [12, 14, 15, 16] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/entrypoint.sh b/entrypoint.sh index 5ab8256..d836cba 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,8 +13,8 @@ if ! [[ "$INPUT_POSTGRESQL_VERSION" =~ ^[0-9]+$ ]]; then fi # Check if the input is between 11 and 16 (inclusive) -if (( INPUT_POSTGRESQL_VERSION < 11 || INPUT_POSTGRESQL_VERSION > 16 )); then - echo "Error: $INPUT_POSTGRESQL_VERSION is not between 11 and 16 (inclusive)." +if (( INPUT_POSTGRESQL_VERSION < 12 || INPUT_POSTGRESQL_VERSION > 16 )); then + echo "Error: $INPUT_POSTGRESQL_VERSION is not between 12 and 16 (inclusive)." exit 1 fi @@ -53,7 +53,7 @@ if [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(unam # shellcheck disable=SC2028 echo "C:\\Program Files\\PostgreSQL\\$INPUT_POSTGRESQL_VERSION\\bin" >> "$GITHUB_PATH" elif [[ "$(uname -s)" == "Darwin" ]]; then - echo "/usr/local/opt/postgresql@${INPUT_POSTGRESQL_VERSION}/bin" >> "$GITHUB_PATH" + echo "$(brew --prefix postgresql@"${INPUT_POSTGRESQL_VERSION}")/bin" >> "$GITHUB_PATH" else echo "/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin" >> "$GITHUB_PATH" fi