tkobayas commented on code in PR #6860:
URL: https://github.com/apache/incubator-kie/pull/6860#discussion_r3892478351


##########
.github/workflows/ci.yaml:
##########
@@ -216,14 +248,145 @@ jobs:
         uses: actions/upload-artifact@v7
         if: ${{ always() }}
         with:
-          name: build-logs_${{ matrix.os }}_java-${{ matrix.java }}
+          name: build-logs_optaplanner_${{ matrix.os }}_java-${{ matrix.java }}
           path: '**/build.log'
 
       - name: Upload Build Compare
         uses: actions/upload-artifact@v7
         if: ${{ always() }}
         with:
-          name: build-compare_${{ matrix.os }}_java-${{ matrix.java }}
+          name: build-compare_optaplanner_${{ matrix.os }}_java-${{ 
matrix.java }}
+          path: |
+            **/*.buildcompare
+            **/*.buildinfo
+
+  test-kogito-runtimes:
+    if: github.event.action != 'closed' && github.event_name == 'pull_request'
+    name: 'kogito-runtimes :: ${{ matrix.os }}, Java ${{ matrix.java }}'
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os:   [ubuntu-latest]
+        java: [17, 21]
+    steps:
+      - name: "SETUP :: Checkout to load local actions"
+        uses: actions/checkout@v7
+
+      - uses: ./.github/actions/ci-setup
+        with:
+          ref: ${{ github.base_ref }}
+          java-version: ${{ matrix.java }}
+
+      - name: "PR CHECK :: BUILD :: Upstream + drools + optaplanner modules 
(tests skipped)"
+        shell: bash
+        run: |
+          [ ! -s "$MAVEN_PL_AFFECTED_KOGITO_RUNTIMES_FILE" ] && echo "No 
affected kogito-runtimes modules. Skipping upstream build." && exit 0
+          upstream=$(paste -sd, "$MAVEN_PL_UPSTREAM_FILE")
+          drools=$(paste -sd, "$MAVEN_PL_AFFECTED_DROOLS_FILE")
+          optaplanner=$(paste -sd, "$MAVEN_PL_AFFECTED_OPTAPLANNER_FILE")
+          pl=$(echo "$upstream,$drools,$optaplanner" | sed 
's/^,//;s/,,*/,/g;s/,$//')
+          [ -z "$pl" ] && echo "No modules to build. Skipping." && exit 0
+          mvn --batch-mode --no-transfer-progress -T 1C -fae -DskipTests 
-DskipITs -Dquarkus.build.skip=true -Denforcer.skip=true -Dcheckstyle.skip=true 
-Dformatter.skip=true -Darchunit.skip=true 
-Dsurefire.redirectTestOutputToFile=true -pl "$pl" install

Review Comment:
   Thanks, yes. I removed the duplication.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to