Skip to content

Commit 769c0c9

Browse files
committed
ci: set docker compose command to wait for services running or healthy and log compose status
1 parent 7e2c74a commit 769c0c9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ jobs:
5151
run: rm -rf build dist
5252
- name: Load env vars from env.test to GitHub Actions workflow
5353
run: dotenv -f env.test list >> "$GITHUB_ENV"
54-
- name: Start services with Docker Compose
55-
run: docker compose -f docker-compose.test.yml up -d
54+
- name: Start services with Docker Compose (wait for health)
55+
run: docker compose -f docker-compose.test.yml up -d --wait --wait-timeout 180
56+
- name: Show compose status
57+
if: always()
58+
run: docker compose -f docker-compose.test.yml ps -a
5659
# Enable tmate debugging of manually-triggered workflows if the input option was provided
5760
- name: Setup tmate session
5861
uses: mxschmitt/action-tmate@v3

0 commit comments

Comments
 (0)