Skip to content

resorts/SHARED.UNITS.PREV.md #8

resorts/SHARED.UNITS.PREV.md

resorts/SHARED.UNITS.PREV.md #8

Workflow file for this run

name: CI Job to Generate JUnit Reports
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
generate-reports:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
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
- name: Run Shell Script to Generate Input File
run: |
./scripts/run_commit_tests.sh
- name: Run JUnit Report Generation Script
run: |
python scripts/into_junit.py /tmp/SHARED.UNITS > junit.xml
- 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."