From 4fc1cac5674787907cc42310fdda3f00dd93e4a6 Mon Sep 17 00:00:00 2001 From: Daniel Kelemen Date: Wed, 7 Aug 2024 12:20:39 +0200 Subject: [PATCH] chore(project): add docker compose alias for GHA --- test/test.sh | 3 +++ test/test_helper.sh | 7 +++++++ 2 files changed, 10 insertions(+) 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 $@ }