-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (39 loc) · 1.3 KB
/
test-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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This workflow generates JUnit report in GitHub from the published test results artifact
name: Test-Report
on:
workflow_run:
workflows: ['CI Dev branch', 'All tests including long-running', 'Documentation tests'] # runs after CI of full test workflow
types:
- completed
permissions:
id-token: write
contents: write
actions: read
checks: write
pull-requests: read
security-events: write
statuses: write
jobs:
report:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Download a test results # download `evita-server.jar` artifact if the workflow we react to was successful
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
name: test-results # artifact name
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/TEST-*.xml'
commit: ${{github.event.workflow_run.head_sha}}
require_tests: true
fail_on_failure: true
summary: true
job_summary: true
annotate_notice: false
update_check: true