From 8c6d8fddeb84648dd144a7dc34a0a83bda03a508 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Jul 2026 09:40:10 +0000 Subject: [PATCH] fix(test-springboot): wait for compose services to be healthy before testing docker compose up -d returns as soon as containers start, not once they're actually ready. For Postgres (and any other compose-file consumer with a healthcheck), that let the test step run before the DB was accepting connections, causing persistent connection-refused failures. Add --wait so the step blocks until compose reports the started services as healthy. --- .github/workflows/test-springboot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-springboot.yml b/.github/workflows/test-springboot.yml index 2abb749..e4d57c1 100644 --- a/.github/workflows/test-springboot.yml +++ b/.github/workflows/test-springboot.yml @@ -73,7 +73,7 @@ jobs: - name: Run compose-file if: inputs.compose-file != '' run: | - docker compose -f ${{ inputs.compose-file }} --profile ${{ inputs.compose-profile }} up -d + docker compose -f ${{ inputs.compose-file }} --profile ${{ inputs.compose-profile }} up -d --wait - name: Build with Gradle run: gradle ${{ inputs.gradle-job }}