apupier commented on code in PR #8790:
URL: https://github.com/apache/camel-quarkus/pull/8790#discussion_r3465533307
##########
.github/workflows/ci-build.yaml:
##########
@@ -299,36 +460,54 @@ jobs:
download-maven-repo: 'true'
- name: Integration Tests
run: |
- for MODULE in $(yq -M -N e ".${{ matrix.category }}"
tooling/scripts/test-categories.yaml | grep -vE '^\s*#' | cut -f2 -d' '); do
- if [[ "${MODULE}" == "null" ]]; then
- continue
- fi
+ # Check if this is incremental build (modules) or full build
(category)
+ if [ -n "${{ matrix.modules }}" ]; then
+ echo "Incremental build - running modules: ${{ matrix.modules }}"
+ # Split comma-separated modules
+ IFS=',' read -ra MODULE_LIST <<< "${{ matrix.modules }}"
+ for MODULE_NAME in "${MODULE_LIST[@]}"; do
+ MODULE="integration-tests/${MODULE_NAME}"
- MODULE="integration-tests/$(echo ${MODULE} | sed 's/^[ \t]*//;s/[
\t]*$//')"
+ if [[ "x$(./mvnw
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate
-Dexpression=ci.native.tests.skip -DforceStdout -q -f ${MODULE})" == "xtrue"
]]; then
+ JVM_MODULES+=("${MODULE}")
+ else
+ NATIVE_MODULES+=("${MODULE}")
+ fi
+ done
+ else
+ echo "Full build - running category: ${{ matrix.category }}"
+ # Original category-based logic
+ for MODULE in $(yq -M -N e ".${{ matrix.category }}"
tooling/scripts/test-categories.yaml | grep -vE '^\s*#' | cut -f2 -d' '); do
+ if [[ "${MODULE}" == "null" ]]; then
+ continue
+ fi
- if [[ "x$(./mvnw
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate
-Dexpression=ci.native.tests.skip -DforceStdout -q -f ${MODULE})" == "xtrue"
]]; then
- JVM_MODULES+=("${MODULE}")
- else
- NATIVE_MODULES+=("${MODULE}")
- fi
- done
+ MODULE="integration-tests/$(echo ${MODULE} | sed 's/^[
\t]*//;s/[ \t]*$//')"
+
+ if [[ "x$(./mvnw
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate
-Dexpression=ci.native.tests.skip -DforceStdout -q -f ${MODULE})" == "xtrue"
]]; then
Review Comment:
note for another and later PR to not mix with this one and avoid conflict,
there is version 3.5.1for maven-help-plugin
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]