Skip to content

Commit 2b46942

Browse files
committed
Add wait for port
1 parent e7c5e31 commit 2b46942

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ jobs:
4949
- name: Deploy app
5050
run: docker-compose up -d --build
5151
- name: Wait for app startup
52-
run: while ! $(curl localhost:8080 -so /dev/null); do echo "Waiting for the app to be up..."; docker-compose ps; sleep 5; done
52+
run: |
53+
{ sleep 120; echo "TIMEOUT!"; return 5; } &
54+
while ! $(curl localhost:8080 -so /dev/null); do echo "Waiting for the app to be up..."; docker-compose ps; sleep 5; done
5355
- name: Run integration tests
5456
shell: bash
5557
run: pytest tests/test_integration

0 commit comments

Comments
 (0)