forked from anuraag016/Jest-Coverage-Diff
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
45 lines (37 loc) · 1.41 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
name: 'Jest coverage referencing main branch existing summary'
description: 'A github action to comment jest coverage diff on a PR using current branch vs already existing main branch summary'
author: 'Fadi Khayo'
inputs:
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
runCommand:
description: 'custom command to get json-summary'
default: 'npx jest --coverage --coverageReporters="json-summary" --coverageDirectory="./"'
delta:
description: 'Difference between the old and final test coverage'
default: 100
total_delta:
description: 'Difference between the old and final test coverage at the total level'
default: null
useSameComment:
description: 'While commenting on the PR update the exisiting comment'
default: false
mainBranchCoverageSummaryFileName:
description: 'file name of main branch summary (master)'
default: 'develop-coverage-summary.json'
additionalCommentInfo:
description: 'Additional string that will be concatenated to comment'
default: null
codeCoverageDirectory:
description: 'code coverage summary location defaults to coverage-summary.json'
default: coverage-summary.json
branding:
color: red
icon: git-pull-request
runs:
using: 'node12'
main: 'dist/index.js'