You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: go-test-coverage is tool which reports issues when test coverage is below set threshold.
3
+
description: go-test-coverage is a tool designed to report issues when test coverage falls below a specified threshold, ensuring higher code quality and preventing regressions in test coverage over time.
4
4
inputs:
5
+
# Config
5
6
config:
6
-
description: Path of configuration file.
7
+
description: Path to the configuration file (.testcoverage.yml), which defines test coverage settings and thresholds.
7
8
required: false
8
9
default: ""
9
10
type: string
11
+
12
+
# Individual properties
10
13
profile:
11
-
description: Path of coverage profile file.
14
+
description: Path to the coverage profile file. Overrides value from configuration.
12
15
required: false
13
16
default: ""
14
17
type: string
15
18
local-prefix:
16
-
description: When specified reported file paths will not contain local prefix in the output.
19
+
description: When specified reported file paths will not contain local prefix in the output. Overrides value from configuration.
17
20
required: false
18
21
default: ""
19
22
type: string
20
23
threshold-file:
21
-
description: The minimum coverage that each file should have.
24
+
description: Minimum coverage percentage required for individual files. Overrides value from configuration.
22
25
required: false
23
26
default: -1
24
27
type: number
25
28
threshold-package:
26
-
description: The minimum coverage that each package should have.
29
+
description: Minimum coverage percentage required for each package. Overrides value from configuration.
27
30
required: false
28
31
default: -1
29
32
type: number
30
33
threshold-total:
31
-
description: The minimum total coverage project should have.
34
+
description: Minimum overall project coverage percentage required. Overrides value from configuration.
32
35
required: false
33
36
default: -1
34
37
type: number
38
+
39
+
# Badge (as file)
35
40
badge-file-name:
36
-
description: When specifiedcoverage badge will be created and saved to this file.
41
+
description: If specified, a coverage badge will be generated and saved to the given file path.
37
42
required: false
38
43
default: ""
39
44
type: string
45
+
46
+
# Badge (on CDN)
40
47
cdn-secret:
41
-
description: CDN API secret. When specified action will create and upload badge to CDN.
48
+
description: API secret key for CDN. If specified, the badge will be uploaded to the CDN.
42
49
required: false
43
50
default: ""
44
51
type: string
45
52
cdn-key:
46
-
description: CDN API key.
53
+
description: API key for CDN access.
47
54
required: false
48
55
default: ""
49
56
type: string
50
57
cdn-region:
51
-
description: CDN region.
58
+
description: Specifies the CDN region for the badge upload.
52
59
required: false
53
60
default: ""
54
61
type: string
55
62
cdn-endpoint:
56
-
description: CDN endpoint.
63
+
description: URL endpoint for CDN where the badge will be uploaded.
57
64
required: false
58
65
default: ""
59
66
type: string
60
67
cdn-file-name:
61
-
description: File name (including path) of badge on CDN.
68
+
description: Filename (including path) for storing the badge on the CDN.
62
69
required: false
63
70
default: ""
64
71
type: string
65
72
cdn-bucket-name:
66
-
description: CDN bucket name.
73
+
description: Name of the CDN bucket where the badge will be saved.
67
74
required: false
68
75
default: ""
69
76
type: string
70
77
cdn-force-path-style:
71
-
description: CDN force pathstyle.
78
+
description: Forces path-style URL access in the CDN.
72
79
required: false
73
80
default: false
74
81
type: boolean
82
+
83
+
# Badge (on Git)
75
84
git-token:
76
-
description: GitHub token. When specified action will create and upload badge to GitHub repository.
85
+
description: GitHub token for authorization. If provided, the badge will be uploaded to the specified GitHub repository.
77
86
required: false
78
87
default: ""
79
88
type: string
80
89
git-repository:
81
-
description: GitHub repository in format {owner}/{repository} where badge is stored.
90
+
description: Target GitHub repository in {owner}/{repository} format where the badge will be stored.
82
91
required: false
83
92
default: ${{ github.repository }}
84
93
type: string
85
94
git-branch:
86
-
description: Branch where badge is stored.
95
+
description: Repository branch where the badge file will be saved.
87
96
required: false
88
97
default: ""
89
98
type: string
90
99
git-file-name:
91
-
description: File name (including path) of badge stored to specified repository.
100
+
description: File name (including path) for storing the badge in the specified repository.
0 commit comments