-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
28 lines (27 loc) · 831 Bytes
/
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
# action.yml
name: "Coverage Scope"
description: "GitHub action parses cobertura.xml files to measure total & new code coverage compared to branch."
inputs:
coverage-filepath:
description: "The coverage file path to parse"
required: true
branch:
description: "The branch to determine coverage for"
required: true
default: "main"
threshold-change:
description: "The threshold to determine if coverage for the changed files is acceptable"
required: true
default: "80"
threshold-total:
description: "The threshold to determine if total coverage is acceptable"
required: true
default: "80"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.coverage-filepath }}
- ${{ inputs.branch }}
- ${{ inputs.threshold-change }}
- ${{ inputs.threshold-total }}