Skip to content

Commit

Permalink
Add postgres service to workflow for running examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zadockmaloba committed Sep 27, 2024
1 parent d0fd80f commit 0c3f21e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ jobs:

runs-on: ${{ matrix.os }}

services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready"
--health-interval=10s
--health-timeout=5s
--health-retries=5
# Give PostgreSQL some time to start
timeout-minutes: 5

steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 0c3f21e

Please sign in to comment.