11name : go-test-coverage
22author : vladopajic
33description : 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+
48inputs :
59 # Config
610 config :
@@ -16,7 +20,7 @@ inputs:
1620 debug :
1721 description : Prints additional debugging output when running action.
1822 required : false
19- default : false
23+ default : true
2024 type : boolean
2125
2226 # Individual properties
@@ -136,33 +140,35 @@ outputs:
136140 description : Deprecated! Text label for the badge.
137141
138142runs :
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