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
- Test across versions
- Run jobs in order
- Run a step conditionally
- Run a step after a failure
- Cancel outdated runs
- Pass data between jobs
All jobs, matrices and conditions commands · GitHub Actions 1 cheatsheet