forked from mikepenz/action-junit-report
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
148 lines (148 loc) · 5.09 KB
/
action.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: 'JUnit Report Action'
description: 'Report JUnit test results as annotations on Github Pull Request [junit]'
branding:
icon: 'check-circle'
color: 'green'
inputs:
token:
description: 'Specify the token to use to publish the check.'
required: false
default: ${{ github.token }}
github_token:
description: 'Deprecated syntax to specify github token.'
required: false
report_paths:
description: 'Xml report paths in glob format'
required: false
default: '**/junit-reports/TEST-*.xml'
test_files_prefix:
description: 'Prefix to add to test file paths from report files when annotating'
required: false
default: ''
exclude_sources:
description: 'Comma seperated list of source folders to ignore for lookup'
required: false
annotate_only:
description: 'Enable to only annotate the results on the files, will not create a check run.'
required: false
default: 'false'
check_annotations:
description: 'Defines if the checks will include annotations (This is different than `annotate_only`).'
required: false
default: 'true'
update_check:
description: 'Defines if the active check should be updated instead'
required: false
default: 'false'
check_name:
description: 'Check name for test reports.'
required: false
default: 'JUnit Test Report'
commit:
description: 'Commit SHA to update the check status.'
required: false
fail_on_failure:
description: 'Fail the build in case a test failure occurred.'
required: false
default: 'false'
fail_on_parse_error:
description: 'Fail the build if the test report file can not be parsed.'
required: false
default: 'false'
require_tests:
description: 'Fail if no test are found.'
required: false
default: 'false'
require_passed_tests:
description: 'Fail if no passed test are found.'
required: false
default: 'false'
include_passed:
description: 'Include passed tests in the report'
required: false
default: 'false'
check_title_template:
description: |-
Template to configure the title format. Placeholders: {{FILE_NAME}}, {{SUITE_NAME}}, {{TEST_NAME}}, {{CLASS_NAME}}, {{BREAD_CRUMB}}.
required: false
bread_crumb_delimiter:
description: |-
Defines the delimiter characters between the breadcrumb elements. Defaults to: `/`.
required: false
default: '/'
summary:
description: 'Additional text to summary output'
required: false
default: ''
check_retries:
description: 'If a testcase is retried, ignore the original failure.'
required: false
default: 'false'
transformers:
description: 'Provide a regex pattern and target pattern'
required: false
default: '[]'
job_summary:
description: 'Enables the publishing of a JOB_SUMMARY with the report.'
required: false
default: 'true'
detailed_summary:
description: 'Include table with all test results in summary'
required: false
default: 'false'
flaky_summary:
description: 'Include table with all flaky results in summary'
required: false
default: 'false'
group_suite:
description: 'If enabled, will group the testcases by test suite in the `detailed_summary`'
required: false
default: 'false'
comment:
description: 'Enables a comment being added to the PR with the summary tables (summary has to be enabled). Default: false'
required: false
default: 'false'
updateComment:
description: 'Enables updating the prior comment if one already exists. Default: true'
required: false
default: 'true'
annotate_notice:
description: 'Annotate passed tests along with warning and failed ones'
required: false
default: 'false'
follow_symlink:
description: 'Enables the file globber to follow symlinks. Default: false'
required: false
default: 'false'
job_name:
description: 'Specify the name of a check to update'
required: false
default: ${{ github.job }}
annotations_limit:
description: 'Specify the limit for annotations. This will also interrupt parsing all test-suites if the limit is reached.'
required: false
skip_annotations:
description: 'Setting this flag will result in no annotations being added to the run.'
required: false
truncate_stack_traces:
description: 'Truncate stack traces from test output to 2 lines in annotations'
required: false
default: 'true'
outputs:
total:
description: 'The total count of all checks'
passed:
description: 'The count of all passed tests'
skipped:
description: 'The count of all skipped tests'
failed:
description: 'The count of all failed tests'
summary:
description: 'The short summary of the junit report. In html format (as also constructed by GitHub for the summary).'
detailed_summary:
description: 'The full table with all test results in a summary. In html format (as also constructed by GitHub for the summary).'
flaky_summary:
description: 'The full table with all flaky results in a summary. In html format (as also constructed by GitHub for the summary).'
runs:
using: 'node20'
main: 'dist/index.js'