forked from MishaKav/jest-coverage-comment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
135 lines (114 loc) · 3.9 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: 'Jest Coverage Comment'
description: 'Comments a pull request or commit with the Jest code coverage badge, full report and tests summary'
author: 'Misha Kav <[email protected]>'
branding:
icon: 'message-circle'
color: 'blue'
inputs:
github-token:
description: 'GitHub API Access Token'
default: ${{ github.token }}
required: true
title:
description: 'Main title for the comment'
required: false
coverage-summary-path:
description: 'The location of the coverage-summary of Jest'
default: './coverage/coverage-summary.json'
required: false
summary-title:
description: 'Title for the coverage summary'
default: ''
required: false
badge-title:
description: 'Title for the badge icon'
default: 'Coverage'
required: false
hide-summary:
description: 'Hide coverage summary report'
default: 'false'
required: false
hide-comment:
description: 'Hide the whole comment (use when you need only `output`)'
default: 'false'
required: false
remove-links-to-files:
description: 'Remove links to files (useful when summary-report is too big)'
default: 'false'
required: false
remove-links-to-lines:
description: 'Remove links to lines (useful when summary-report is too big)'
default: 'false'
required: false
create-new-comment:
description: 'When false, will update the same comment, otherwise will publish new comment on each run'
default: 'false'
required: false
junitxml-path:
description: 'The location of the junitxml path (npm package `jest-junit` should be installed)'
default: ''
required: false
junitxml-title:
description: 'Title for summary for junitxml'
default: ''
required: false
coverage-path:
description: 'The location of the coverage.txt (Jest console output)'
default: ''
required: false
coverage-title:
description: 'Title for the coverage report'
default: 'Coverage Report'
required: false
coverage-path-prefix:
description: 'Prefix for path when link to files in comment'
default: ''
required: false
report-only-changed-files:
description: 'Show in report only changed files for this commit, and not all files'
default: 'false'
required: false
multiple-files:
description: >
You can pass array of `json-summary.json` files and generate single comment with table of results
Single line should look like `Title1, ./path/to/json-summary.json`
default: ''
required: false
multiple-junitxml-files:
description: >
You can pass array of `junit.xml` files and generate single comment with table of results
Single line should look like `Title1, ./path/to/junit.xml`
default: ''
required: false
unique-id-for-comment:
description: 'When running in a matrix, pass the matrix value, so each comment will be updated its own comment'
default: ''
required: false
outputs:
coverage:
description: 'Value indicating the coverage percentage of your report based on Jest, example 78'
color:
description: 'Color of coverage report'
summaryHtml:
description: 'The HTML of the coverage summary report (markdown table)'
tests:
description: 'Total number of tests, get from `junitxml`'
skipped:
description: 'Total number of skipped tests, get from `junitxml`'
failures:
description: 'Total number of tests with failures, get from `junitxml`'
errors:
description: 'Total number of tests with errors, get from `junitxml`'
time:
description: 'Seconds the took to run all the tests, get from `junitxml`'
lines:
description: 'Lines covered, get from Jest text report'
branches:
description: 'Branches covered, get from Jest text report'
functions:
description: 'Functions covered, get from Jest text report'
statements:
description: 'Statements covered, get from Jest text report'
runs:
using: 'node20'
main: 'dist/index.js'