Skip to content

Commit

Permalink
add health check
Browse files Browse the repository at this point in the history
  • Loading branch information
victory-sokolov committed Jul 9, 2024
1 parent 561d138 commit 2a2c1ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
-e POSTGRES_PASSWORD=securepassword \
-e DB_HOST=localhost \
-p 5431:5431 \
--health-cmd="pg_isready -U user" \
--health-interval=10s \
--health-timeout=5s \
--health-retries=5 \
--health-start-period=10s \
-v ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d \
postgres:15
Expand All @@ -39,6 +44,8 @@ jobs:
uses: ./.github/actions/install-deps

- name: Run tests
env:
POSTGRES_HOST: postgres
run: |
set -v
make tests

0 comments on commit 2a2c1ce

Please sign in to comment.