Skip to content

Commit 981e784

Browse files
committed
update action inputs
1 parent 734f73b commit 981e784

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

action.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,42 @@ description: go-test-coverage is tool which reports issues when test coverage of
44
inputs:
55
config:
66
description: Path of configuration file.
7+
required: false
8+
type: string
79
profile:
810
description: Path of coverage profile file.
11+
required: false
12+
type: string
913
local-prefix:
1014
description: When specified reported file paths will not contain local prefix in the output.
15+
required: false
16+
type: string
1117
threshold-file:
1218
description: The minimum coverage that each file should have.
19+
required: false
20+
type: number
1321
threshold-package:
1422
description: The minimum coverage that each package should have.
23+
required: false
24+
type: number
1525
threshold-total:
1626
description: The minimum total coverage project should have.
27+
required: false
28+
type: number
1729
outputs:
1830
total_coverage:
1931
description: Holds total coverage value.
2032
runs:
2133
using: docker
2234
image: docker://ghcr.io/vladopajic/go-test-coverage:v2.0.1
2335
args:
24-
- -config=${{ inputs.config || "" }}
25-
- -profile=${{ inputs.profile || "" }}
36+
- -config=${{ inputs.config }}
37+
- -profile=${{ inputs.profile }}
2638
- -github-action-output=true
27-
- -local-prefix=${{ inputs.local-prefix || "" }}
28-
- -threshold-file=${{ inputs.threshold-file || "" }}
29-
- -threshold-package=${{ inputs.threshold-package || "" }}
30-
- -threshold-total=${{ inputs.threshold-total || "" }}
39+
- -local-prefix=${{ inputs.local-prefix }}
40+
- -threshold-file=${{ inputs.threshold-file }}
41+
- -threshold-package=${{ inputs.threshold-package }}
42+
- -threshold-total=${{ inputs.threshold-total }}
3143
branding:
3244
icon: 'code'
3345
color: 'blue'

0 commit comments

Comments
 (0)