-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
76 lines (74 loc) · 2.91 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
name: 'Code Coverage Report Difference'
description: 'Provides code coverage reports with the ability to see differences in a pull requests utilizing markdown files.'
author: 'ClearlyIP'
branding:
icon: 'file-text'
color: 'blue'
inputs:
filename:
description: 'Code Coverage file to process (with extension)'
required: true
github_token:
description: 'GitHub token. This is sometimes needed on private repositories'
required: false
default: ${{ github.token }}
only_list_changed_files:
description: 'Only list changed files'
required: false
default: 'false'
markdown_filename:
description: 'The filename (without extension) for the resulting markdown file. Default is code-coverage-results.'
required: false
default: 'code-coverage-results'
badge:
description: 'Include a coverage badge in the output using shields.io - true / false (default).'
required: false
default: 'false'
overall_coverage_fail_threshold:
description: 'Fail if overall coverage below lower threshold percentage. The default value is 0'
required: false
default: '0'
file_coverage_error_min:
description: 'Threshold used to determine when coverages less than this value should be marked red'
required: false
default: '50'
file_coverage_warning_max:
description: 'Threshold used to determine when coverages less than this value should be marked orange. Above this will be marked green'
required: false
default: '75'
fail_on_negative_difference:
description: 'Fail if any difference is a negative value (Coverage was reduced)'
required: false
default: 'false'
artifact_download_workflow_names:
description: 'Comma Separated list of workflow names to look for artifacts in. If left empty will only look at the current workflow'
required: false
artifact_name:
description: 'Artifact name. Use %name% as a placeholder (must be included!)'
required: false
default: 'coverage-%name%'
negative_difference_by:
description: 'Determines how negative difference is evaluated. Possible values are "overall" and "package" (default)'
required: false
default: 'package'
negative_difference_threshold:
description: 'The percentage drop in coverage that should be allowed. The default value is 0.'
required: false
default: '0'
retention_days:
description: 'The number of days to retain uploaded artifacts. When `undefined` (default), the default retention period for the repository is used.'
required: false
without_base_coverage_template:
description: 'Path to custom template without base coverage'
required: false
with_base_coverage_template:
description: 'Path to custom template with base coverage'
required: false
outputs:
file:
description: 'The generated markdown file path'
coverage:
description: 'The overall coverage of the project as a percentage'
runs:
using: 'node20'
main: 'dist/index.js'