forked from Madrapps/jacoco-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
58 lines (55 loc) · 1.98 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
name: 'JaCoCo Report'
description: 'Publishes the JaCoCo report as a comment in the Pull Request'
inputs:
paths:
description: 'Comma separated paths of the generated jacoco xml files (supports wildcard glob pattern)'
required: true
token:
description: 'Github personal token to add commits to Pull Request'
required: true
min-coverage-overall:
description: 'The minimum code coverage that is required to pass for overall project'
required: false
default: '80'
min-coverage-changed-files:
description: 'The minimum code coverage that is required to pass for changed files'
required: false
default: '80'
title:
description: 'Optional title for the Pull Request comment'
required: false
update-comment:
description: 'Update the coverage report comment instead of creating new ones. Requires title to works properly.'
required: false
default: 'false'
skip-if-no-changes:
description: "Comment won't be added if there is no coverage information present for the files changed"
required: false
default: 'false'
pass-emoji:
description: 'Github emoji to use for pass status shown when coverage greater than min coverage (should be a Github supported emoji)'
required: false
default: ':green_apple:'
fail-emoji:
description: 'Github emoji to use for fail status shown when coverage lesser than min coverage (should be a Github supported emoji)'
required: false
default: ':x:'
continue-on-error:
description: 'When there is an error do not fail the action, but log a warning'
required: false
default: 'true'
debug-mode:
description: 'Run the action in debug mode and get debug logs printed in console'
required: false
default: 'false'
outputs:
coverage-overall:
description: 'The overall coverage of the project'
coverage-changed-files:
description: 'The total coverage of all changed files'
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'percent'
color: 'green'