Skip to content

Commit

Permalink
Update macOS bash on CI (#129)
Browse files Browse the repository at this point in the history
* Update macOs bash on CI

Signed-off-by: Ricardo Zanini <[email protected]>

* Fix bash at 5; fix macOS wording

Signed-off-by: Ricardo Zanini <[email protected]>

---------

Signed-off-by: Ricardo Zanini <[email protected]>
  • Loading branch information
ricardozanini committed Sep 27, 2024
1 parent c0e2aa5 commit 343be84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ runs:
libxml2-utils > /dev/null 2>&1
fi
- name: "Update bash for macOS (macOS Only)"
shell: bash
if: runner.os == 'macOS'
run: |
echo "STEP: Update bash for macOS (macOS Only)"
brew update
brew install bash@5
echo "/usr/local/bin" >> $GITHUB_PATH
- name: "Print storage usage (after setup)"
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ To build and test all packages of the Apache KIE Tools project, you're going to
- Helm `3.13.3` _(To install, follow these instructions: https://helm.sh/docs/intro/install/)_
- Make
- xmllint _(To install, follow these instructions: https://www.baeldung.com/linux/xmllint)_
- bash `5.x` _(On Linux or Nix you should be fine. On macOS, follow these instructions to use zsh: https://support.apple.com/102360)_

> **ℹ️ NOTE**
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function configure() {
}

function configure_jobs_service_events() {
if [ "$(echo "${ENABLE_EVENTS}" | tr '[:lower:]' '[:upper:]')" == "TRUE" ]; then
if [ "${ENABLE_EVENTS^^}" == "TRUE" ]; then
KOGITO_JOBS_PROPS="${KOGITO_JOBS_PROPS} -Dquarkus.profile=events-support"
fi
}

0 comments on commit 343be84

Please sign in to comment.