Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
save

GitHub Action

PostgreSQL in GitHub Actions VM

1.3.0

PostgreSQL in GitHub Actions VM

save

PostgreSQL in GitHub Actions VM

Start PostgreSQL in the GitHub Actions VM

Installation

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

              

- name: PostgreSQL in GitHub Actions VM

uses: dentarg/[email protected]

Learn more about this action in dentarg/postgres

Choose a version

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