Skip to content

Commit

Permalink
Wait for db to be up
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdoupe committed Sep 1, 2023
1 parent 1ecb548 commit 25ebfcf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,20 @@ jobs:
sleep 5
docker exec dojo journalctl -u pwn.college | tail -n 5
done
- name: Wait for db to be ready
run: |
until docker exec dojo docker exec db mysqladmin ping -h "localhost" --silent
do
sleep 5
docker exec dojo docker logs db | tail 5
done
# - name: Move inner cache
# run: |
# rm -rf /tmp/.buildx-cache-inner
# mv /tmp/.buildx-cache-inner-new /tmp/.buildx-cache-inner
- name: Run tests against container
run: |
docker exec dojo docker compose logs
pytest ./test || docker exec dojo docker compose logs
Expand Down

0 comments on commit 25ebfcf

Please sign in to comment.