Skip to content

Commit 2c85493

Browse files
committed
Add PostgreSQL 18
PostgreSQL 18 is the most recent version of the PostgreSQL database, released on September 25, 2025. It just makes sense to keep up with the upstream versions if we can, hence this patch.
1 parent aa86a1c commit 2c85493

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
CERTIFICATE_PATH: ${{ steps.postgres.outputs.certificate-path }}
5656
EXPECTED_CONNECTION_URI: postgresql://postgres:postgres@localhost:5432/postgres
5757
EXPECTED_SERVICE_NAME: postgres
58-
EXPECTED_SERVER_VERSION: "17"
58+
EXPECTED_SERVER_VERSION: "18"
5959
EXPECTED_SSL: false
6060

6161
parametrized:
@@ -78,6 +78,7 @@ jobs:
7878
- "14"
7979
- "15"
8080
- "16"
81+
- "17"
8182
steps:
8283
- uses: actions/checkout@v4
8384

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ key features:
1919

2020
#### Inputs
2121

22-
| Key | Value | Default |
23-
|------------------|------------------------------------------------------------------------------------|-------------|
24-
| username | The username of the user to setup. | `postgres` |
25-
| password | The password of the user to setup. | `postgres` |
26-
| database | The database name to setup and grant permissions to created user. | `postgres` |
27-
| port | The server port to listen on. | `5432` |
28-
| postgres-version | The PostgreSQL major version to install. Supported values: "14", "15", "16", "17". | `17` |
22+
| Key | Value | Default |
23+
|------------------|------------------------------------------------------------------------------------------|-------------|
24+
| username | The username of the user to setup. | `postgres` |
25+
| password | The password of the user to setup. | `postgres` |
26+
| database | The database name to setup and grant permissions to created user. | `postgres` |
27+
| port | The server port to listen on. | `5432` |
28+
| postgres-version | The PostgreSQL major version to install. Supported values: "14", "15", "16", "17", "18". | `18` |
2929

3030
#### Outputs
3131

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ inputs:
2222
default: "5432"
2323
required: false
2424
postgres-version:
25-
description: The PostgreSQL major version to install. Either "14", "15", "16" or "17".
26-
default: "17"
25+
description: The PostgreSQL major version to install. Either "14", "15", "16", "17" or "18".
26+
default: "18"
2727
ssl:
2828
description: When "true", encrypt connections using SSL (TLS).
2929
default: "false"
@@ -43,8 +43,8 @@ runs:
4343
steps:
4444
- name: Install PostgreSQL
4545
run: |
46-
if [[ ! "${{ inputs.postgres-version }}" =~ ^(14|15|16|17)$ ]]; then
47-
echo "::error::postgres-version must be one of: 14, 15, 16, 17."
46+
if [[ ! "${{ inputs.postgres-version }}" =~ ^(14|15|16|17|18)$ ]]; then
47+
echo "::error::postgres-version must be one of: 14, 15, 16, 17, 18."
4848
exit 1
4949
fi
5050

0 commit comments

Comments
 (0)