Skip to content

Commit

Permalink
chore(project): add docker compose alias for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkelemen committed Aug 26, 2024
1 parent c787d0c commit 4fc1cac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions test/test_helper.sh
Original file line number Diff line number Diff line change
@@ -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 $@
}
Expand Down

0 comments on commit 4fc1cac

Please sign in to comment.