forked from anuraag016/Jest-Coverage-Diff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (39 loc) · 1.34 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
name: 'Jest Coverage Diff'
description: 'A github action to comment jest coverage diff on a PR'
author: 'Anuraag Puri'
inputs:
accessToken:
description: 'access token required to comment on a pr'
default: ${{ github.token }}
prNumber:
description: 'PR number e.g. 789'
branchNameBase:
description: 'The branch the pr wants to merge into e.g. main'
branchNameHead:
description: 'The branch the pr is requesting review on'
coverageReportUrl:
description: 'URL to download the coverage report artifact'
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="./"'
afterSwitchCommand:
description: 'command to run after switching to default branch'
default: null
delta:
description: 'Percent difference in any file"s coverage at which to fail the job e.g. 1'
default: null
totalDelta:
description: 'Percent difference in total codebase coverage at which to fail the job e.g. 1'
default: null
useSameComment:
description: 'While commenting on the PR update the existing comment'
default: false
branding:
color: red
icon: git-pull-request
runs:
using: 'node12'
main: 'dist/index.js'