1
1
name : go-test-coverage
2
2
author : vladopajic
3
3
description : go-test-coverage is a tool designed to report issues when test coverage falls below a specified threshold.
4
+ branding :
5
+ icon : ' code'
6
+ color : ' blue'
7
+
4
8
inputs :
5
9
# Config
6
10
config :
@@ -16,7 +20,7 @@ inputs:
16
20
debug :
17
21
description : Prints additional debugging output when running action.
18
22
required : false
19
- default : false
23
+ default : true
20
24
type : boolean
21
25
22
26
# Individual properties
@@ -136,33 +140,35 @@ outputs:
136
140
description : Deprecated! Text label for the badge.
137
141
138
142
runs :
139
- using : docker
140
- # VERSION: when changing version update version in other places
141
- image : docker://ghcr.io/vladopajic/go-test-coverage:v2.14.1
142
- args :
143
- - --config=${{ inputs.config || '''''' }}
144
- - --profile=${{ inputs.profile || '''''' }}
145
- - --source-dir=${{ inputs.source-dir || '''''' }}
146
- - --debug=${{ inputs.debug }}
147
- - --github-action-output=true
148
- - --threshold-file=${{ inputs.threshold-file }}
149
- - --threshold-package=${{ inputs.threshold-package }}
150
- - --threshold-total=${{ inputs.threshold-total }}
151
- - --breakdown-file-name=${{ inputs.breakdown-file-name || '''''' }}
152
- - --diff-base-breakdown-file-name=${{ inputs.diff-base-breakdown-file-name || '''''' }}
153
- - --badge-file-name=${{ inputs.badge-file-name || '''''' }}
154
- - --cdn-key=${{ inputs.cdn-key || '''''' }}
155
- - --cdn-secret=${{ inputs.cdn-secret || '''''' }}
156
- - --cdn-region=${{ inputs.cdn-region || '''''' }}
157
- - --cdn-endpoint=${{ inputs.cdn-endpoint || '''''' }}
158
- - --cdn-file-name=${{ inputs.cdn-file-name || '''''' }}
159
- - --cdn-bucket-name=${{ inputs.cdn-bucket-name || '''''' }}
160
- - --cdn-force-path-style=${{ inputs.cdn-force-path-style }}
161
- - --git-token=${{ inputs.git-token || '''''' }}
162
- - --git-branch=${{ inputs.git-branch || '''''' }}
163
- - --git-repository=${{ inputs.git-repository || ''''''}}
164
- - --git-file-name=${{ inputs.git-file-name || '''''' }}
165
-
166
- branding :
167
- icon : ' code'
168
- color : ' blue'
143
+ using : composite
144
+ steps :
145
+ - uses : actions/setup-go@v5
146
+ with :
147
+ go-version : ' 1.24'
148
+
149
+ - name : run go-test-coverage
150
+ shell : bash
151
+ run : |
152
+ go run github.com/vladopajic/go-test-coverage/v2@78970591c7bd59dc59031d62c210798ef618d1e0 \
153
+ --config=${{ inputs.config || '***' }} \
154
+ --profile=${{ inputs.profile || '***' }} \
155
+ --source-dir=${{ inputs.source-dir || '***' }} \
156
+ --debug=${{ inputs.debug }} \
157
+ --github-action-output=true \
158
+ --threshold-file=${{ inputs.threshold-file }} \
159
+ --threshold-package=${{ inputs.threshold-package }} \
160
+ --threshold-total=${{ inputs.threshold-total }} \
161
+ --breakdown-file-name=${{ inputs.breakdown-file-name || '***' }} \
162
+ --diff-base-breakdown-file-name=${{ inputs.diff-base-breakdown-file-name || '***' }} \
163
+ --badge-file-name=${{ inputs.badge-file-name || '***' }} \
164
+ --cdn-key=${{ inputs.cdn-key || '***' }} \
165
+ --cdn-secret=${{ inputs.cdn-secret || '***' }} \
166
+ --cdn-region=${{ inputs.cdn-region || '***' }} \
167
+ --cdn-endpoint=${{ inputs.cdn-endpoint || '***' }} \
168
+ --cdn-file-name=${{ inputs.cdn-file-name || '***' }} \
169
+ --cdn-bucket-name=${{ inputs.cdn-bucket-name || '***' }} \
170
+ --cdn-force-path-style=${{ inputs.cdn-force-path-style }} \
171
+ --git-token=${{ inputs.git-token || '***' }} \
172
+ --git-branch=${{ inputs.git-branch || '***' }} \
173
+ --git-repository=${{ inputs.git-repository || '***'}} \
174
+ --git-file-name=${{ inputs.git-file-name || '***' }}
0 commit comments