diff --git a/tests/docker-compose.yml b/tests/compose.yml similarity index 98% rename from tests/docker-compose.yml rename to tests/compose.yml index 1fe9264..870e79c 100644 --- a/tests/docker-compose.yml +++ b/tests/compose.yml @@ -1,5 +1,3 @@ -version: "2" - services: postgres: image: wodby/postgres diff --git a/tests/run.sh b/tests/run.sh index 7ba1859..2fe396b 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -27,14 +27,14 @@ wait_for_cron() { } docker_exec() { - docker-compose exec -T "${@}" + docker compose exec -T "${@}" } run_action() { docker_exec "${1}" make "${@:2}" -f /usr/local/bin/actions.mk } -docker-compose up -d +docker compose up -d run_action ruby check-ready max_try=10 wait_seconds=3 @@ -42,4 +42,4 @@ docker_exec ruby tests.sh wait_for_cron -docker-compose down +docker compose down