Skip to content

Commit

Permalink
junit-matrix-report.html --report-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Aug 14, 2024
1 parent 393ff72 commit 24dd8cf
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Job to Generate JUnit Report
name: CI Job to Generate JUnit Reports

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
- main

jobs:
generate-report:
generate-reports:
runs-on: ubuntu-latest

steps:
Expand All @@ -21,6 +21,10 @@ jobs:
with:
python-version: '3.x'

- name: Install junit2html
run: |
pip install junit2html
- name: Make Shell Script Executable
run: chmod +x scripts/run_commit_tests.sh

Expand All @@ -32,15 +36,39 @@ jobs:
run: |
python scripts/into_junit.py /tmp/SHARED.UNITS > junit.xml
- name: Upload JUnit Report
- name: Convert JUnit XML to Standard HTML Report
run: |
junit2html junit.xml junit-standard-report.html
- name: Convert JUnit XML to Matrix HTML Report
run: |
junit2html junit.xml junit-matrix-report.html --report-matrix
- name: Upload JUnit XML Report
uses: actions/upload-artifact@v3
with:
name: junit-report
path: junit.xml

- name: Upload Standard HTML Report
uses: actions/upload-artifact@v3
with:
name: junit-standard-html-report
path: junit-standard-report.html

- name: Upload Matrix HTML Report
uses: actions/upload-artifact@v3
with:
name: junit-matrix-html-report
path: junit-matrix-report.html

- name: Display JUnit Test Results
uses: dorny/test-reporter@v1
with:
name: 'JUnit Results'
path: 'junit.xml'
reporter: 'java-junit' # Correct reporter type for JUnit XML

- name: Display HTML Report Information
run: |
echo "Both standard and matrix HTML reports are available as artifacts."

0 comments on commit 24dd8cf

Please sign in to comment.