-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathaction.yml
More file actions
104 lines (84 loc) · 3.1 KB
/
Copy pathaction.yml
File metadata and controls
104 lines (84 loc) · 3.1 KB
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
## This is a SAMPLE metadata file for a GitHub Action. For more info:
## https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: jacoco-reporter
author: Pavan Mudigonda
description: |
Publishes JaCoCo format Coverage Report in GitHub Actions as Checksuite and enforces Code Coverage Quality Gate.
## Here you describe your *formal* inputs -- those that are
## documented and can be displayed by the marketplace.
## You also use these to identify the *required* inputs.
inputs:
coverage_results_path:
description: |
Path to the JaCoCo coverage results file which will be used to generate
a report. The only coverage results format supported is the
JaCoCo XML schema.
required: true
output_level:
description: |
Optionally specify the level of output detail for the test results.
May be one of: `none`, `Minimal`, `normal`, `detailed`, `diagnostic`
The default is `normal`.
required: false
github_token:
description: |
GITHUB_TOKEN to authenticate against API calls to attach
report to Workflow Run.
required: false
default: ${{github.token}}
skip_check_run:
description: |
If true, will skip attaching the Tests Result report to
the Workflow Run using a Check Run. Useful if you just
want to produce a Gist-based report via the `gist_name`
and `gist_token` input parameters.
required: false
coverage_paths:
description: |
Comma-separated list of one or more directories to scan for code
coverage, relative to the root of the project. Will include all .ps1
and .psm1 files under these directories recursively.
required: false
coverage_report_name:
description: |
The name of the code coverage report object that will be attached
to the Workflow Run. Defaults to the name
`COVERAGE_RESULTS_<datetime>` where `<datetime>` is in the form
`yyyyMMdd_hhmmss`.
required: false
coverage_report_title:
description: |
The title of the code coverage report that will be embedded in the
report itself, which defaults to the same as the
`code_coverage_report_name` input.
required: false
minimum_coverage:
description: 'Minimum allowed coverage percentage as an integer.'
required: false
fail_below_threshold:
description: 'Fail the action when the minimum coverage was not met.'
required: false
publish_only_summary:
description: |
If true, will skip attaching the Tests Result report to the
Workflow Run using a Check Run. Useful if your report has 65k
characters that is not accepted by Github REST and GraphQL APIs
required: false
## Here you describe your *formal* outputs.
outputs:
coverage_percentage:
description: Coverage Percentage
covered_lines:
description: Covered Lines
missed_lines:
description: Missed Lines
total_lines:
description: Total Lines
branding:
color: purple
icon: check-circle
## Even though the Action logic may be implemented
## in PWSH, we still need a NodeJS entry point
runs:
using: node24
main: _init/index.js