You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/10/13 10:13:54 UTC
[camel] branch main updated: (chores) ci: added support for testing core changes
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 24c06315b98 (chores) ci: added support for testing core changes
24c06315b98 is described below
commit 24c06315b98c913190ef438a1afa4d63fade9beb
Author: Otavio Rodolfo Piske <an...@gmail.com>
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 b63899f3d7a..67970f12c95 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)