-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
52 lines (52 loc) · 1.97 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
name: 'Hyperse Vitest Coverage Reporter'
description: 'Provide a Vitest Test Coverage Report as Step-Summary and comment in Pull Requests'
author: 'Hyperse.net'
inputs:
github-token:
required: false
description: 'A github access token with permissions to write to issues. Uses secrets.GITHUB_TOKEN by default.'
default: ${{ github.token }}
write-summary-to-readme:
required: false
description: 'Write the coverage summary to the README.md file.'
default: '## Coverage Report'
vite-config-path:
required: false
description: 'The path to the vite config file. By default, looks for paths by the pattern "vite[st].config.{t|mt|ct|j|mj|cj}s".'
json-summary-path:
required: false
description: 'The path to the json summary file. Uses "coverage/coverage-summary.json" by default.'
default: coverage/coverage-summary.json
json-summary-compare-path:
required: false
description: 'The path to the json summary file of the previous run to get trend indicators.'
json-final-path:
required: false
description: 'The path to the json final file. Uses "coverage/coverage-final.json" by default.'
default: coverage/coverage-final.json
file-coverage-mode:
required: false
description: 'How to show summary for files coverage. Uses "changes" by default.'
default: changes
repo-cwd:
required: false
description: 'Custom repo directory'
default: ./
include-all-projects:
required: false
description: 'Include all projects or auto detect file changed project in the pull request.'
default: 'false'
name:
required: false
description: 'The name of the coverage report. Can be used to execute this action multiple times. '
default: ''
pr-number:
required: false
description: 'An optional, user-defined pull request number.'
default: ''
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-circle'
color: 'green'