Skip to content
hard-drive

GitHub Action

install-postgresql

v3.1.1 Latest version

install-postgresql

hard-drive

install-postgresql

Install PostgreSQL on the GitHub actions runner and verify the installation

Installation

Copy and paste the following snippet into your .yml file.

              

- name: install-postgresql

uses: tj-actions/install-postgresql@v3.1.1

Learn more about this action in tj-actions/install-postgresql

Choose a version

Ubuntu Mac OS Windows Public workflows that use this action.

CI Update release version.

All Contributors

install-postgresql

This Github action installs PostgreSQL on the GitHub actions runner and verifies the installation.

...
    steps:
      - uses: actions/checkout@v4
      - name: Setup PostgreSQL
        uses: tj-actions/install-postgresql@v3
        with:
          postgresql-version: 16

Note

  • This updates the pre-installed PostgreSQL version on the action runner with the specified version and updates the PATH.

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
postgresql-version string true Version of PostgreSQL. e.g 16

Known Limitations

Warning

  • Slow to install on Windows runners.

If you feel generous and want to show some extra appreciation:

Buy me a coffee

Credits

This package was created with Cookiecutter using cookiecutter-action

Report Bugs

Report bugs at https://github.com/tj-actions/setup-postgresql/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Brennan Colberg
Brennan Colberg

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!