Skip to content

PostgreSQL in GitHub Actions VM

Actions
Start PostgreSQL in the GitHub Actions VM
1.4.0
Latest
Star (0)

postgres

dentarg/postgres is an composite run steps action that starts PostgreSQL in the GitHub Actions VM and creates a user and a database. You can then connect to the database using the address found in environment variable POSTGRES_URL.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: dentarg/postgres@v1
    - run: <your test command>
      env:
        DATABASE_URL: "${{ env.POSTGRES_URL }}" # or use POSTGRES_URL directly

See the GitHub Actions Virtual Environments repo to understand what version of PostgreSQL will be used.

PostgreSQL in GitHub Actions VM is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Start PostgreSQL in the GitHub Actions VM
1.4.0
Latest

PostgreSQL in GitHub Actions VM is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.