Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
contract:
name: Contract tests
runs-on: ubuntu-latest
needs: [api, bot]
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -165,8 +165,10 @@ jobs:
docker compose up -d \
postgres redis pgbouncer db-init \
booking-service payment-service calendar-service
# Wait up to 90s for booking-service to become healthy.
timeout 90 sh -c 'until docker compose ps booking-service | grep -q "healthy"; do sleep 3; done'
# Wait for every contract endpoint before running the tests.
for service in booking-service payment-service calendar-service; do
timeout 120 sh -c "until docker compose ps $service | grep -q 'healthy'; do docker compose ps $service; sleep 3; done"
done

- name: Run contract tests
env:
Expand Down
Loading