mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
Add support for PG 17 (#45)
* add support for pg 17 * enable manually running test action --------- Co-authored-by: Tonye Jack <jtonye@ymail.com>
This commit is contained in:
parent
eca924aafa
commit
f22fc31f92
4 changed files with 8 additions and 7 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
@ -1,6 +1,7 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
@ -27,7 +28,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
postgresql_version: [12, 14, 15, 16]
|
postgresql_version: [12, 14, 15, 16, 17]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
@ -21,7 +21,7 @@ This Github action installs PostgreSQL on the GitHub actions runner and verifies
|
||||||
- name: Setup PostgreSQL
|
- name: Setup PostgreSQL
|
||||||
uses: tj-actions/install-postgresql@v3
|
uses: tj-actions/install-postgresql@v3
|
||||||
with:
|
with:
|
||||||
postgresql-version: 16
|
postgresql-version: 17
|
||||||
```
|
```
|
||||||
|
|
||||||
> \[!NOTE]
|
> \[!NOTE]
|
||||||
|
@ -34,7 +34,7 @@ This Github action installs PostgreSQL on the GitHub actions runner and verifies
|
||||||
|
|
||||||
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|
||||||
|----------------------------------------------------------------------------------------|--------|----------|---------|-------------------------------|
|
|----------------------------------------------------------------------------------------|--------|----------|---------|-------------------------------|
|
||||||
| <a name="input_postgresql-version"></a>[postgresql-version](#input_postgresql-version) | string | true | | Version of PostgreSQL. e.g 16 |
|
| <a name="input_postgresql-version"></a>[postgresql-version](#input_postgresql-version) | string | true | | Version of PostgreSQL. e.g 17 |
|
||||||
|
|
||||||
<!-- AUTO-DOC-INPUT:END -->
|
<!-- AUTO-DOC-INPUT:END -->
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ description: Install PostgreSQL on the GitHub actions runner and verify the inst
|
||||||
author: tj-actions
|
author: tj-actions
|
||||||
inputs:
|
inputs:
|
||||||
postgresql-version:
|
postgresql-version:
|
||||||
description: 'Version of PostgreSQL. e.g 16'
|
description: 'Version of PostgreSQL. e.g 17'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
|
|
|
@ -12,9 +12,9 @@ if ! [[ "$INPUT_POSTGRESQL_VERSION" =~ ^[0-9]+$ ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the input is between 11 and 16 (inclusive)
|
# Check if the input is between 11 and 17 (inclusive)
|
||||||
if (( INPUT_POSTGRESQL_VERSION < 12 || INPUT_POSTGRESQL_VERSION > 16 )); then
|
if (( INPUT_POSTGRESQL_VERSION < 12 || INPUT_POSTGRESQL_VERSION > 17 )); then
|
||||||
echo "Error: $INPUT_POSTGRESQL_VERSION is not between 12 and 16 (inclusive)."
|
echo "Error: $INPUT_POSTGRESQL_VERSION is not between 12 and 17 (inclusive)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue