GitHub Actions 1 · Jobs, matrices and conditions

Start a database for tests

Run a PostgreSQL container next to the job.

services:
  postgres:
    image: postgres:18
    env:
      POSTGRES_PASSWORD: postgres
    ports:
      - 5432:5432
    options: >-
      --health-cmd pg_isready
      --health-interval 10s
      --health-retries 5

Official GitHub Actions 1 documentation

More jobs, matrices and conditions commands

All jobs, matrices and conditions commands · GitHub Actions 1 cheatsheet

Was this page helpful?