Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
CERTIFICATE_PATH: ${{ steps.postgres.outputs.certificate-path }}
EXPECTED_CONNECTION_URI: postgresql://postgres:postgres@localhost:5432/postgres
EXPECTED_SERVICE_NAME: postgres
EXPECTED_SERVER_VERSION: "17"
EXPECTED_SERVER_VERSION: "18"
EXPECTED_SSL: false

parametrized:
Expand All @@ -78,6 +78,7 @@ jobs:
- "14"
- "15"
- "16"
- "17"
steps:
- uses: actions/checkout@v4

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ key features:

#### Inputs

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

#### Outputs

Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ inputs:
default: "5432"
required: false
postgres-version:
description: The PostgreSQL major version to install. Either "14", "15", "16" or "17".
default: "17"
description: The PostgreSQL major version to install. Either "14", "15", "16", "17" or "18".
default: "18"
ssl:
description: When "true", encrypt connections using SSL (TLS).
default: "false"
Expand All @@ -43,8 +43,8 @@ runs:
steps:
- name: Install PostgreSQL
run: |
if [[ ! "${{ inputs.postgres-version }}" =~ ^(14|15|16|17)$ ]]; then
echo "::error::postgres-version must be one of: 14, 15, 16, 17."
if [[ ! "${{ inputs.postgres-version }}" =~ ^(14|15|16|17|18)$ ]]; then
echo "::error::postgres-version must be one of: 14, 15, 16, 17, 18."
exit 1
fi

Expand Down