This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch karaf-4.4.x
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/karaf-4.4.x by this push:
new 0a3a3dc9c6 Add publish test results in CI (#2253) (#2256)
0a3a3dc9c6 is described below
commit 0a3a3dc9c66783dd27e425f275912234c38f468f
Author: JB Onofré <[email protected]>
AuthorDate: Tue Feb 3 13:12:16 2026 +0100
Add publish test results in CI (#2253) (#2256)
---
.github/workflows/ci.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index dfef845e14..dfa564f9db 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -51,6 +51,8 @@ jobs:
permissions:
contents: read
+ checks: write
+ pull-requests: write
runs-on: ubuntu-24.04
@@ -65,3 +67,17 @@ jobs:
cache: 'maven'
- name: Test
run: mvn -U -B -e clean install -Ptest
+ - 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'