-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
62 lines (62 loc) · 1.93 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
name: Coverage Comment
branding:
icon: 'umbrella'
color: 'purple'
description: >
Publish diff coverage report as PR comment, and create a coverage badge
to display on the readme.
inputs:
GITHUB_TOKEN:
description: >
A GitHub token to write comments and write the badge to the wiki
(``github.token``)
required: true
COVERAGE_FILE:
description: >
Path and filename of the coverage XML file to analyze.
default: "coverage.xml"
required: false
COMMENT_TEMPLATE:
description: >
[Advanced] Specify a different template for the comments that will be written on the PR.
required: false
DIFF_COVER_ARGS:
description: >
[Advanced] Additional args to pass to diff cover (one per line)
required: false
BADGE_ENABLED:
description: >
Whether or not a badge will be generated and stored.
default: "true"
required: false
BADGE_FILENAME:
description: >
Name of the json file containing badge informations stored in the repo
wiki.
default: coverage-comment-badge.json
required: false
MINIMUM_GREEN:
description: >
If the coverage percentage is above or equal to this value, the badge
will be green.
default: 100
required: false
MINIMUM_ORANGE:
description: >
If the coverage percentage is not green and above or equal to this value,
the badge will be orange. Otherwise it will be red.
default: 70
required: false
runs:
using: docker
# image: Dockerfile
image: docker://ewjoachim/coverage-comment-action:latest
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
COVERAGE_FILE: ${{ inputs.COVERAGE_FILE }}
COMMENT_TEMPLATE: ${{ inputs.COMMENT_TEMPLATE }}
DIFF_COVER_ARGS: ${{ inputs.DIFF_COVER_ARGS }}
BADGE_ENABLED: ${{ inputs.BADGE_ENABLED }}
BADGE_FILENAME: ${{ inputs.BADGE_FILENAME }}
MINIMUM_GREEN: ${{ inputs.MINIMUM_GREEN }}
MINIMUM_ORANGE: ${{ inputs.MINIMUM_ORANGE }}