Skip to content

Commit

Permalink
fix: wait for containers to be healthy before attempting to run tests (
Browse files Browse the repository at this point in the history
…#660)

* fix: wait for containers to be healthy before attempting to run tests

* fix
  • Loading branch information
NiceAesth authored Apr 21, 2024
1 parent 9c8a0f3 commit e5896c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:
run: docker build -t bancho:latest .

- name: Start containers
run: docker-compose -f docker-compose.test.yml up -d bancho-test mysql-test redis-test
run: docker compose -f docker-compose.test.yml up --detach --wait --wait-timeout 30 bancho-test mysql-test redis-test

- name: Run tests
run: docker-compose -f docker-compose.test.yml exec -T bancho-test /srv/root/scripts/run-tests.sh
run: docker compose -f docker-compose.test.yml exec -T bancho-test /srv/root/scripts/run-tests.sh

- name: Stop containers
if: always()
Expand Down

0 comments on commit e5896c0

Please sign in to comment.