Skip to content

Commit 0580a6b

Browse files
author
Jonathan Shook
committed
force surefire results to be saved as an artifact on the test job
1 parent 9bee2d2 commit 0580a6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ jobs:
8383
paths: |
8484
**/target/surefire-reports/TEST-*.xml
8585
86+
# Upload Surefire test results as an artifact
87+
- name: Upload Surefire Test Results
88+
uses: actions/upload-artifact@v4
89+
if: always() # ensures upload happens even if tests fail
90+
with:
91+
name: surefire-results
92+
path: "**/target/surefire-reports/**"
8693

8794
build:
8895
concurrency:

0 commit comments

Comments
 (0)