Skip to content

Commit

Permalink
Create separate report workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 26, 2024
1 parent 4ff305f commit 1db0717
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/checkCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ jobs:
TESTDIR: ${{ github.workspace }}/.CI/Test
- name: Run tests
run: ctest --test-dir build --build-config ${{ matrix.configuration }} --verbose --output-junit junit-${{ matrix.compiler }}.xml
- name: Publish test report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
- name: Upload test report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
report_paths: '**/build/junit-*.xml'
annotate_only: true
name: junit-test-results
path: '**/build/junit-*.xml'
retention-days: 1

html_documentation_checks:
name: html-documentation-checks
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/reportCI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI report

on:
workflow_run:
workflows: [CI]
types: [completed]

permissions:
checks: write

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Download test report
uses: dawidd6/action-download-artifact@v3
with:
name: junit-test-results
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Publish test teport
uses: mikepenz/action-junit-report@v3
with:
commit: ${{github.event.workflow_run.head_sha}}
report_paths: '**/build/junit-*.xml'
annotate_only: true

0 comments on commit 1db0717

Please sign in to comment.