Skip to content

Commit 8bedee3

Browse files
chr-hertelclaude
andcommitted
ci: replace sleep with compose --wait + nginx healthcheck
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 06917f6 commit 8bedee3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/pipeline.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ jobs:
9191
run: |
9292
mkdir -p tests/Conformance/sessions tests/Conformance/logs
9393
chmod -R 777 tests/Conformance/sessions tests/Conformance/logs
94-
docker compose -f tests/Conformance/Fixtures/docker-compose.yml up -d
95-
sleep 5
94+
docker compose -f tests/Conformance/Fixtures/docker-compose.yml up -d --wait
9695
9796
- name: Run conformance tests
9897
working-directory: ./tests/Conformance

tests/Conformance/Fixtures/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ services:
1010
- php-fpm
1111
networks:
1212
- mcp-net
13+
healthcheck:
14+
test: ["CMD", "wget", "-q", "-O-", "http://localhost/"]
15+
interval: 2s
16+
timeout: 2s
17+
retries: 10
18+
start_period: 2s
1319

1420
php-fpm:
1521
image: php:8.4-fpm-alpine

0 commit comments

Comments
 (0)