Skip to content

Commit

Permalink
Standard, matrix, and comparison HTML reports are available as artifa…
Browse files Browse the repository at this point in the history
…cts.
  • Loading branch information
TeamSPoon committed Aug 14, 2024
1 parent c6303b0 commit aed4870
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,25 @@ jobs:
reporter: 'java-junit' # Correct reporter type for JUnit XML
fail-on-error: false # Do not fail the job if tests fail

- name: Compare JUnit Test Results with mikepenz
uses: mikepenz/action-junit-report@v3
- name: Download Previous JUnit Results
uses: actions/download-artifact@v3
with:
report_paths: junit.xml
compare_to_previous: true
fail_on_failure: false # Do not fail the job if tests fail
name: junit-report
path: previous-junit.xml # Save as previous-junit.xml

- name: Diff JUnit Test Results
uses: Juit/[email protected]
- name: Compare JUnit Test Results with ReportGenerator
uses: danielpalme/[email protected]
with:
base-junit: junit-report/base.xml # Adjust to your previous report location
head-junit: junit.xml # The current test report
output: junit-diff-report.html
reports: 'previous-junit.xml;junit.xml'
targetdir: './comparison-report'
reporttypes: 'HtmlSummary;HtmlChart'

- name: Upload JUnit Diff Report
- name: Upload JUnit Comparison Report
uses: actions/upload-artifact@v3
with:
name: junit-diff-html-report
path: junit-diff-report.html
name: junit-comparison-html-report
path: ./comparison-report

- name: Display HTML Report Information
run: |
echo "Standard, matrix, and diff HTML reports are available as artifacts. JUnit test comparison reports are also available."
echo "Standard, matrix, and comparison HTML reports are available as artifacts."

0 comments on commit aed4870

Please sign in to comment.