diff --git a/test/test.sh b/test/test.sh index 9bee51a8..bb8a4b9f 100755 --- a/test/test.sh +++ b/test/test.sh @@ -3,6 +3,9 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) cd ${DIR} + +source test_helper.sh + docker-compose up --force-recreate -d postgres mysql ./test-${DISTRO}.sh camunda ./test-${DISTRO}.sh camunda-mysql diff --git a/test/test_helper.sh b/test/test_helper.sh index 75d938ab..0a1e0925 100644 --- a/test/test_helper.sh +++ b/test/test_helper.sh @@ -1,6 +1,13 @@ #!/bin/bash -eu RETRIES=100 WAIT=5 + +GHA=${GITHUB_ACTIONS:-false} +if [ "${GHA}" = "true" ]; then + shopt -s expand_aliases + alias docker-compose="docker compose" +fi + function _log { >&2 echo $@ }