Skip to content

Commit a093f68

Browse files
committed
wait.
1 parent 1c9761f commit a093f68

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,22 @@ jobs:
2727
- name: Start container
2828
run: docker compose up -d
2929

30+
- name: Wait for container to be ready
31+
run: |
32+
for i in {1..30}; do
33+
if curl -f http://localhost:3000/v1/health > /dev/null 2>&1; then
34+
echo "Container is ready!"
35+
exit 0
36+
fi
37+
echo "Waiting for container... ($i/30)"
38+
sleep 1
39+
done
40+
echo "Container failed to start"
41+
exit 1
42+
3043
- name: Run e2e tests
31-
run: bun test:e2e
44+
run: bun test:e2e
45+
46+
- name: Stop container
47+
if: always()
48+
run: docker compose down

0 commit comments

Comments
 (0)