-
Notifications
You must be signed in to change notification settings - Fork 14
Add 'postgres-version' input parameter #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+89
−38
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,12 +9,13 @@ key features: | |
|
|
||
| * Runs on Linux, macOS and Windows action runners. | ||
| * Adds PostgreSQL [client applications][1] to `PATH`. | ||
| * Uses PostgreSQL binaries baked into [GitHub Actions Runner Images][2]. | ||
| * Easy [to prove][3] that it DOES NOT contain malicious code. | ||
| * PostgreSQL version can be parametrized. | ||
| * Easy [to verify][2] that it DOES NOT contain malicious code. | ||
|
|
||
| By default PostgreSQL 15 is used. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing this is a typo, and should instead be "16" PR open: |
||
|
|
||
| [1]: https://www.postgresql.org/docs/current/reference-client.html | ||
| [2]: https://github.com/actions/runner-images | ||
| [3]: action.yml | ||
| [2]: action.yml | ||
|
|
||
| ## Usage | ||
|
|
||
|
|
@@ -33,12 +34,13 @@ key features: | |
|
|
||
| #### Action Parameters | ||
|
|
||
| | 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` | | ||
| | 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". | `16` | | ||
|
|
||
| #### Outputs | ||
|
|
||
|
|
@@ -58,19 +60,20 @@ key features: | |
|
|
||
| ```yaml | ||
| steps: | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| ``` | ||
|
|
||
| #### Advanced | ||
|
|
||
| ```yaml | ||
| steps: | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| with: | ||
| username: ci | ||
| password: sw0rdfish | ||
| database: test | ||
| port: 34837 | ||
| postgres-version: "14" | ||
| id: postgres | ||
|
|
||
| - run: pytest -vv tests/ | ||
|
|
@@ -88,7 +91,7 @@ steps: | |
|
|
||
| ```yaml | ||
| steps: | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
|
|
||
| - run: | | ||
| createuser myuser | ||
|
|
@@ -110,7 +113,7 @@ steps: | |
|
|
||
| ```yaml | ||
| steps: | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| - uses: ikalnytskyi/action-setup-postgres@v6 | ||
| ``` | ||
|
|
||
| ```python | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this include
"16"? or no testing on the default version?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
16is tested as part of thedefaultjob. Just want to reduce the testing matrix a bit. :) It sometimes takes ages to find free windows/macos runners.