-
Notifications
You must be signed in to change notification settings - Fork 5
251 lines (228 loc) · 8.28 KB
/
example.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
name: example of workflow
on:
pull_request:
jobs:
build:
name: example of workflow
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: clover file not found
uses: ./.
continue-on-error: true
with:
dir-prefix: /var/www/html
file: not.found.xml
base-file: not.found.too.xml
signature: "file not found"
- name: clover file to comment (clover.example.xml)
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.missing.xml
with-chart: false
signature: "valid file with inexistent base-file"
- name: clover file to comment (clover.pdepend.xml)
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.pdepend.xml
base-file: clover.pdepend.base.xml
only-with-cover: true
signature: "valid file with valid base-file"
- name: clover file to comment (clover.example.base.xml)
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.base.xml
base-file: clover.example.xml
chart-size: 75
only-with-cover: true
signature: "valid file with valid base-file, with custom chart-size"
- name: clover file to comment - max descrease
uses: ./.
continue-on-error: true
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
max-line-coverage-decrease: 2.0
max-method-coverage-decrease: 1.0
min-line-coverage: 99.3
min-method-coverage: 81.02
signature: "valid file with valid base-file, with blocking"
- name: clover file to comment - no descrease
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
max-line-coverage-decrease: 3.0
max-method-coverage-decrease: 2.0
min-line-coverage: 80.0
min-method-coverage: 80.00
signature: "valid file with valid base-file, without blocking"
- name: clover file to comment - without table
uses: ./.
continue-on-error: true
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
max-line-coverage-decrease: 2.0
max-method-coverage-decrease: 1.0
min-line-coverage: 99.3
min-method-coverage: 81.02
with-table: false
signature: "valid file with valid base-file, without table"
- name: clover file to comment - without table or chart
uses: ./.
continue-on-error: true
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
max-line-coverage-decrease: 2.0
max-method-coverage-decrease: 1.0
min-line-coverage: 99.3
min-method-coverage: 81.02
with-table: false
with-chart: false
signature: "valid file with valid base-file, without table or chart"
- name: clover file to comment - only below 70% methods coverage
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.missing.xml
with-chart: false
table-below-coverage: 70
table-type-coverage: methods
signature: "clover file to comment - only below 70% methods coverage"
- name: clover file to comment - only below 80% lines coveraged
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.missing.xml
with-chart: false
table-below-coverage: 80
signature: "clover file to comment - only below 80% lines coveraged"
- name: clover file to comment - only above 0% methods coverage
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.missing.xml
with-chart: false
table-above-coverage: 10
table-type-coverage: methods
signature: "clover file to comment - only above 10% methods coverage"
- name: clover file to comment - invalid coverage type
uses: ./.
continue-on-error: true
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.missing.xml
with-chart: false
table-type-coverage: banana
signature: "clover file to comment - invalid coverage type"
- name: clover file to comment - only between 50% and 80% line coverage
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.missing.xml
with-chart: false
table-above-coverage: 50
table-below-coverage: 80
signature: "clover file to comment - only between 50% and 80% line coverage"
- name: clover file to comment - only with percentage change of 5%
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
with-chart: false
table-coverage-change: 5
table-type-coverage: lines
show-percentage-change-on-table: true
signature: "clover file to comment - only with percentage change"
- name: clover file to comment - clover file to comment - show delta per file
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
with-chart: false
show-percentage-change-on-table: true
signature: "clover file to comment - show delta per file"
- name: clover file to comment - only coverable lines
uses: ./.
with:
dir-prefix: /var/www/html
file: nolines.xml
with-chart: false
only-with-coverable-lines: true
signature: "only coverable lines"
- name: clover file to comment - only with percentage change and with some cover
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.xml
base-file: clover.example.base.xml
with-chart: false
table-coverage-change: 5
table-type-coverage: lines
show-percentage-change-on-table: true
only-with-cover: true
signature: "clover file to comment - only with percentage change and with some cover"
- name: clover file to comment - no lines after filter
uses: ./.
with:
dir-prefix: /var/www/html
file: nolines.xml
with-chart: true
table-below-coverage: 80
only-with-coverable-lines: true
signature: "clover file to comment - no lines after filter"
- name: clover file to comment - only one package
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.onepackage.xml
base-file: clover.onepackage.base.xml
with-chart: true
show-percentage-change-on-table: true
signature: "clover file to comment - only one package"
- name: clover file to comment - hide branches column
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.onepackage.xml
base-file: clover.onepackage.base.xml
with-chart: true
show-percentage-change-on-table: true
with-branches: false
signature: "clover file to comment - hide branches column"
- name: comment using a pat
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.onepackage.xml
with-chart: false
with-branches: false
signature: "comment using a pat"
github-token: ${{ secrets.PAT }}
- name: comment using a pat - again
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.onepackage.xml
with-chart: false
with-branches: false
signature: "comment using a pat"
github-token: ${{ secrets.PAT }}