-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect all test reports in a single workflow and print it in GitHub
closes #21
- Loading branch information
Hécate Kleidukos
committed
Sep 1, 2024
1 parent
6ec16e1
commit 782fb12
Showing
2 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test Reports | ||
on: | ||
workflow_run: | ||
workflows: [ builds, build-alpine ] | ||
types: [ completed ] | ||
|
||
permissions: | ||
checks: write | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install juitparser | ||
run: | | ||
pip install junitparser==3.2.0 | ||
- name: Download Test Report | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
name: junit-test-results | ||
workflow: ${{ github.event.workflow.id }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
- name: Merge XML files | ||
run: | | ||
junitparser merge --glob *.xml final-report.xml | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
with: | ||
commit: ${{github.event.workflow_run.head_sha}} | ||
report_paths: 'final-report.xml' |