Skip to content

Setup a PostgreSQL for Linux, macOS and Windows runner machines.

License

Notifications You must be signed in to change notification settings

matt-42/action-setup-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-postgres

This action sets up a PostgreSQL server for the rest of the job. Here are some key features:

Usage

Key Value
URI postgresql://postgres:postgres@localhost/postgres
Host localhost
Port 5432
Username postgres
Password postgres
Database postgres

Basic

steps:
  - uses: ikalnytskyi/action-setup-postgres@v1

Advanced

steps:
  - uses: ikalnytskyi/action-setup-postgres@v1
    with:
      username: ci
      password: sw0rdfish
      database: test
    id: postgres

  - run: pytest -vv tests/
    env:
      DATABASE_URI: ${{ steps.postgres.outputs.connection-uri }}

License

The scripts and documentation in this project are released under the MIT License.

About

Setup a PostgreSQL for Linux, macOS and Windows runner machines.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%