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/karaf.git
The following commit(s) were added to refs/heads/main by this push:
new 16e5f8e015 Add publish test results in CI (#2253)
16e5f8e015 is described below
commit 16e5f8e015b53e44c592f7c10507f6c25bd60edd
Author: JB Onofré <[email protected]>
AuthorDate: Tue Feb 3 10:01:41 2026 +0100
Add publish test results in CI (#2253)
---
.github/workflows/ci.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4ec1eb167a..493256320f 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'