This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new 1e8ef75f58 Enable publishing of test results in CI workflows (#1637)
1e8ef75f58 is described below

commit 1e8ef75f5818b8d052dcdb1c7e41f5c803610014
Author: Jean-Louis Monteiro <[email protected]>
AuthorDate: Wed Jan 28 19:42:42 2026 +0100

    Enable publishing of test results in CI workflows (#1637)
    
    * Enable publishing of test results in CI workflows
    
    * Enable publishing of large test result files and individual run reports 
in CI workflows
---
 .github/workflows/ci-nightly.yml | 35 +++++++++++++++++++++++++++++++++++
 .github/workflows/ci-quick.yml   | 16 ++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml
index ed3786333f..586dc57f5f 100644
--- a/.github/workflows/ci-nightly.yml
+++ b/.github/workflows/ci-nightly.yml
@@ -50,6 +50,8 @@ jobs:
 
     permissions:
       contents: read
+      checks: write
+      pull-requests: write
 
     strategy:
       matrix:
@@ -67,3 +69,36 @@ jobs:
           distribution: temurin
       - name: Test
         run: mvn -B -e -fae test
+      - name: Upload Test Results
+        if: (!cancelled())
+        uses: actions/upload-artifact@v4
+        with:
+          name: test-results-${{ matrix.os }}-java${{ matrix.java-version }}
+          path: '**/target/surefire-reports/*.xml'
+      - name: Publish Test Results (Linux)
+        if: (!cancelled()) && runner.os == 'Linux'
+        uses: EnricoMi/publish-unit-test-result-action@v2
+        with:
+          large_files: true
+          report_individual_runs: true
+          report_suite_logs: error
+          check_name: Test Results (${{ matrix.os }}, Java ${{ 
matrix.java-version }})
+          files: '**/target/surefire-reports/*.xml'
+      - name: Publish Test Results (macOS)
+        if: (!cancelled()) && runner.os == 'macOS'
+        uses: EnricoMi/publish-unit-test-result-action/macos@v2
+        with:
+          large_files: true
+          report_individual_runs: true
+          report_suite_logs: error
+          check_name: Test Results (${{ matrix.os }}, Java ${{ 
matrix.java-version }})
+          files: '**/target/surefire-reports/*.xml'
+      - name: Publish Test Results (Windows)
+        if: (!cancelled()) && runner.os == 'Windows'
+        uses: EnricoMi/publish-unit-test-result-action/windows@v2
+        with:
+          large_files: true
+          report_individual_runs: true
+          report_suite_logs: error
+          check_name: Test Results (${{ matrix.os }}, Java ${{ 
matrix.java-version }})
+          files: '**/target/surefire-reports/*.xml'
diff --git a/.github/workflows/ci-quick.yml b/.github/workflows/ci-quick.yml
index c3e4746d98..8671dcc0a6 100644
--- a/.github/workflows/ci-quick.yml
+++ b/.github/workflows/ci-quick.yml
@@ -54,6 +54,8 @@ jobs:
 
     permissions:
       contents: read
+      checks: write
+      pull-requests: write
 
     runs-on: ubuntu-24.04
 
@@ -66,3 +68,17 @@ jobs:
           distribution: temurin
       - name: Test
         run: mvn -B -e -fae test
+      - name: Upload Test Results
+        if: (!cancelled())
+        uses: actions/upload-artifact@v4
+        with:
+          name: test-results
+          path: '**/target/surefire-reports/*.xml'
+      - name: Publish Test Results
+        if: (!cancelled())
+        uses: EnricoMi/publish-unit-test-result-action@v2
+        with:
+          large_files: true
+          report_individual_runs: true
+          report_suite_logs: error
+          files: '**/target/surefire-reports/*.xml'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to