forked from eclipse-cdt/cdt
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 885 Bytes
/
report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Unit Test Results
on:
workflow_run:
workflows: ["Build and Test"]
types:
- completed
jobs:
unit-test-results:
name: Unit Test Results
runs-on: ubuntu-20.04
if: github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Download Test Report
uses: dawidd6/action-download-artifact@v7
with:
name: test-results
path: test-results
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Publish Test Report as GitHub PR Comment
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
commit: ${{ github.event.workflow_run.head_sha }}
junit_files: "test-results/**/*.xml"
event_file: test-results/event.json
event_name: ${{ github.event.workflow_run.event }}