-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathaction.yml
166 lines (159 loc) · 4.59 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: 'GitHub Test Reporter'
description:
'Build, publish and view test reports on job summaries and pull requests'
author: 'ctrf-io'
branding:
icon: 'check'
color: 'green'
inputs:
# Core Configuration
report-path:
description: 'Path or glob pattern of the CTRF JSON files.'
required: true
template-path:
description:
'Path to the Handlebars template for customizing markdown output.'
required: false
title:
description:
'Title to display in the GitHub Actions summary or pull request comment.'
required: false
# Report Options
summary-report:
description: 'Include the summary report.'
required: false
default: false
test-report:
description: 'Include the tests table report.'
required: false
default: false
test-list-report:
description: 'Include the tests list report.'
required: false
default: false
failed-report:
description: 'Include the failed tests report.'
required: false
default: false
fail-rate-report:
description: 'Include the fail rate report.'
required: false
default: false
flaky-report:
description: 'Include the flaky tests report.'
required: false
default: false
flaky-rate-report:
description: 'Include the flaky rate report.'
required: false
default: false
failed-folded-report:
description: 'Include the failed folded report.'
required: false
default: false
previous-results-report:
description: 'Include the previous results report.'
required: false
default: false
ai-report:
description: 'Include the AI analysis report.'
required: false
default: false
skipped-report:
description: 'Include the skipped report.'
required: false
default: false
suite-folded-report:
description: 'Include the suite folded report.'
required: false
default: false
suite-list-report:
description: 'Include the suite list report.'
required: false
default: false
pull-request-report:
description: 'Include the pull request report.'
required: false
default: false
custom-report:
description: >
Include a custom report using a Handlebars template. To group tests in the
custom report, use the 'group-by' or 'always-group-by' input.
required: false
default: false
# Behavior Options
summary:
description: 'Post generated markdown to the GitHub Actions summary.'
required: false
default: true
pull-request:
description: 'Add a comment to the pull request with the generated report.'
required: false
default: false
annotate:
description: 'Add annotations to failed tests in the GitHub Actions UI.'
required: false
default: true
on-fail-only:
description: 'Add a pull request comment only if tests fail.'
required: false
default: false
exit-on-fail:
description: 'Exit the workflow with a failure status if any tests fail.'
required: false
default: false
use-suite-name:
description: 'Prefix test names with the suite name for better grouping.'
required: false
default: false
updateComment:
description: 'Update existing Pull Request comment.'
required: false
default: false
overwriteComment:
description: 'Overwrite existing Pull Request comment.'
required: false
default: false
commentTag:
description: 'Tag to match Pull Request comment'
required: false
default: false
# Advanced Options
artifact-name:
description: 'Name of the artifact containing test reports.'
required: false
default: 'ctrf-report'
previous-results-max:
description:
'Maximum number of previous test results to display in the report.'
required: false
default: 10
fetch-previous-results:
description:
'Always fetch previous workflow runs when using custom templates.'
required: false
default: false
group-by:
description: >
Specify grouping for applicable reports (e.g., suite or file path).
Options: - 'suite': Group tests by their suite property. - 'filePath':
Group tests by their file path. Default is 'filePath'. Use this for
built-in or custom reports where grouping is needed.
required: false
default: 'filePath'
always-group-by:
description:
Force grouping by suite or file path for all reports, overriding default
behavior
required: false
default: false
debug:
description: 'Enable debug mode for verbose logging.'
required: false
default: false
outputs:
summary:
description: 'The markdown summary generated from the test report.'
runs:
using: 'node20'
main: dist/index.js