Skip to content

Commit fe5c590

Browse files
committed
Add wait for port
1 parent d59ed03 commit fe5c590

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,7 @@ jobs:
4949
- name: Deploy app
5050
run: docker-compose up -d --build
5151
- name: Wait for app startup
52-
continue-on-error: true
53-
run: |
54-
curl localhost:8080 -so /dev/null
55-
while [[ $? -ne 0 ]]
56-
do
57-
echo "Waiting for the service in port 8080 to be up ..."
58-
sleep 5
59-
curl localhost:8080 -so /dev/null
60-
done
52+
run: while ! $(curl localhost:8000 -so /dev/null); do echo no; sleep 5; done
6153
- name: Run integration tests
6254
shell: bash
6355
run: pytest tests/test_integration

0 commit comments

Comments
 (0)