Skip to content

Commit

Permalink
ci: wait container
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Sep 19, 2023
1 parent f523748 commit e77a7ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
uses: actions/checkout@v2

- name: Start containers
run: docker-compose up -d
run: docker-compose up -d --wait

- name: Generate graphql types
run: |
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ services:
condition: service_started
postgres:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 30s
timeout: 10s
retries: 5
environment:
postgres_host: postgres
postgres_user: graph-node
Expand Down

0 comments on commit e77a7ab

Please sign in to comment.