This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch camel-3.18.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 4489db3f754ab1a1b4c6ae7aa5eaa7f00f40ac9b Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Thu Oct 13 12:13:13 2022 +0200 (chores) ci: added support for testing core changes --- .github/actions/quick-test/quick-test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/actions/quick-test/quick-test.sh b/.github/actions/quick-test/quick-test.sh index 9b00af62ce0..0e1b160822b 100755 --- a/.github/actions/quick-test/quick-test.sh +++ b/.github/actions/quick-test/quick-test.sh @@ -93,6 +93,11 @@ function componentTest() { fi } +function coreTest() { + cd "core" + runTest "core" "1" "1" +} + function main() { local current=0 local startCommit=${1:-""} @@ -100,6 +105,13 @@ function main() { mkdir -p "${logDir}" + echo "Searching for camel core changes" + local core=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^core' | grep -v -e '^$' | cut -d / -f 1 | uniq | sort) + if [[ ! -z "${core}" ]] ; then + coreTest + fi + + echo "Searching for modified components" local components=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^components' | grep -v -e '^$' | cut -d / -f 1-2 | uniq | sort) local total=$(echo "${components}" | grep -v -e '^$' | wc -l)
