-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
44 lines (43 loc) · 1.38 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
name: 'Jest Coverage Reporter Action'
description: 'Provide a coverage report based on a base/master coverage report'
branding:
icon: git-pull-request
color: orange
inputs:
base-coverage-report-path:
required: true
description: 'Path to base coverage report'
branch-coverage-report-path:
required: true
description: 'Path to the current coverage report'
accessToken:
description: 'access token required to comment on a pr'
default: ${{ github.token }}
fullCoverageDiff:
description: 'get the full coverage with diff or only the diff'
default: false
delta:
description: 'Difference between the old and final test coverage'
default: 0.2
useSameComment:
description: 'While commenting on the PR update the exisiting comment'
default: true
custom-message:
description: 'Pass any custom string which will be displayed in the comment'
default: ''
only-check-changed-files:
description: 'Only test for changed files in the PR'
default: true
prefix-filename-url:
description: 'Add a base URL to the filenames and make it a hyperlink'
default: ''
check-new-file-full-coverage:
description: 'Check newly added files whether have full coverage tests'
default: true
coverageType:
required: false
description: 'Tools that generate code coverage'
default: 'jest'
runs:
using: 'node20'
main: 'dest/index.js'