Skip to content

Commit

Permalink
Better test results
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Sep 9, 2022
1 parent 27627cc commit 49e87b3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
env:
MAVEN_OPTS: ${{ matrix.maven-opts }}
run: mvn ${{ matrix.maven-params }} test javadoc:javadoc
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
- name: Upload test results
uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'
name: test-results
path: '**/target/surefire-reports/TEST-*.xml'
16 changes: 16 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['CI'] # runs after CI workflow
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results
name: Test Result
path: '**/target/surefire-reports/TEST-*.xml'
reporter: java-junit

0 comments on commit 49e87b3

Please sign in to comment.