Skip to content

Commit 1ced898

Browse files
authored
Upload surefire reports as github artifacts if maven tests fail (#37)
1 parent ee4bfdf commit 1ced898

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/maven-verify.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,11 @@ jobs:
112112
# [2]: https://docs.github.com/en/actions/sharing-automations/reusing-workflows#limitations
113113
name: Run maven verify
114114
run: mvn --batch-mode --update-snapshots --fail-fast ${{ inputs.mvn-options }} verify
115+
116+
- # https://github.com/actions/upload-artifact
117+
name: Upload surefire reports
118+
if: failure()
119+
uses: actions/upload-artifact@v5
120+
with:
121+
name: "surefire-reports-${{ inputs.runner }}"
122+
path: target/surefire-reports/**

0 commit comments

Comments
 (0)