Skip to content

Commit 3834def

Browse files
committed
Add publishing test results to CI
1 parent bd46d3c commit 3834def

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/maven.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919

2020
runs-on: ubuntu-latest
2121

22+
permissions:
23+
checks: write
24+
pull-requests: write
25+
2226
steps:
2327
- uses: actions/checkout@v4
2428
- name: Set up JDK 17
@@ -29,6 +33,12 @@ jobs:
2933
cache: maven
3034
- name: Build with Maven
3135
run: mvn -B package --file pom.xml
36+
- name: Publish Test Results
37+
uses: EnricoMi/publish-unit-test-result-action@v2
38+
if: always()
39+
with:
40+
files: |
41+
target/surefire-reports/*.xml
3242
3343
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3444
#- name: Update dependency graph

0 commit comments

Comments
 (0)