You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-8Lines changed: 31 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A GitHub Action that reads Cobertura format code coverage files from your test s
4
4
5
5
Code Coverage Summary is designed for use with [Coverlet](https://github.com/coverlet-coverage/coverlet) and [gcovr](https://github.com/gcovr/gcovr) but it should work with any test framework that outputs coverage in Cobertura format.
6
6
7
-
As a Docker based action Code Coverage Summary requires a Linux runner, see [Types of Action](https://docs.github.com/en/actions/creating-actions/about-custom-actions#types-of-actions). If you need to build with a Windows or MacOS runner a workaround would be to upload the coverage file as an artifact and use a seperate job with a Linux runner to generate the summary.
7
+
As a Docker based action Code Coverage Summary requires a Linux runner, see [Types of Action](https://docs.github.com/en/actions/creating-actions/about-custom-actions#types-of-actions). If you need to build with a Windows or MacOS runner a workaround would be to upload the coverage file as an artifact and use a separate job with a Linux runner to generate the summary.
8
8
9
9
## Inputs
10
10
@@ -19,12 +19,30 @@ Note: Coverlet creates the coverage file in a random named directory (guid) so y
19
19
20
20
Include a badge reporting the Line Rate coverage in the output using [shields.io](https://shields.io/) - `true` or `false` (default).
21
21
22
-
If the overall Line Rate is less than 50% the badge will be red, if it is 50% - 74% it will be yellow and if it is 75% or over it will be green.
22
+
If the overall Line Rate is less than the lower threshold (50%) the badge will be red, if it is between thresholds it will be yellow and if it greater than or equal to the higher threshold (75%) it will be green. See [`thresholds`](#thresholds) to change these values.
23
+
24
+
#### `fail_below_min`
25
+
**v1.1.0-beta only**
26
+
27
+
Fail the workflow if the overall Line Rate is below lower threshold - `true` or `false` (default). The default lower threshold is 50%, see [`thresholds`](#thresholds).
23
28
24
29
#### `format`
25
30
26
31
Output Format - `markdown` or `text` (default).
27
32
33
+
#### `indicators`
34
+
**v1.1.0-beta only**
35
+
36
+
Include health indicators in the output - `true` (default) or `false`.'
37
+
38
+
Line Rate | Indicator
39
+
--------- | ---------
40
+
less than lower threshold (50%) | ❌
41
+
between thresholds (50% - 74%) | ➖
42
+
equal or greater than upper threshold (75%) | ✔
43
+
44
+
See [`thresholds`](#thresholds) to change these values.
45
+
28
46
#### `output`
29
47
30
48
Output Type - `console` (default), `file` or `both`.
@@ -35,16 +53,21 @@ Output Type - `console` (default), `file` or `both`.
35
53
36
54
`both` will output the coverage summary to the Action log and a file as above.
37
55
56
+
#### `thresholds`
57
+
**v1.1.0-beta only**
58
+
59
+
Lower and upper threshold percentages for badge and health indicators, lower threshold can also be used to fail the action. Separate the values with a space and enclose them in quotes; default `'50 75'`.
0 commit comments