-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathaction.yml
52 lines (52 loc) · 2.6 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: 'Vitest Coverage Report'
description: 'Provide a Vitest Test Coverage Report as Step-Summary and comment in Pull Requests'
author: 'David Losert'
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 }}
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
file-coverage-root-path:
required: false
description: 'The root (or absolute) part of the path used within the json coverage reports to point to the covered files. You can change this if your reports were generated in a different context (e.g., a docker container) and the absolute paths don''t match the current runner''s workspace. Uses the runner''s workspace path by default.'
default: ${{ github.workspace }}
working-directory:
required: false
description: 'Working directory where to look for the vite config file and the coverage report files. Uses "./" by default.'
default: ./
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 to comment on. When using "push" events, use "auto" to try to automatically find a matching PR.'
default: ''
comment-on:
required: false
description: 'Specify where you want a comment to appear: "pr" for pull-request (if one can be found), "commit" for the commit in which context the action was run, or "none" for no comments. You can provide a comma-separated list of "pr" and "commit" to comment on both. Uses "pr" by default.'
default: pr
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-circle'
color: 'green'