Skip to content

Commit c1d1f2f

Browse files
committed
update
1 parent e5ea773 commit c1d1f2f

File tree

3 files changed

+13
-187
lines changed

3 files changed

+13
-187
lines changed

.github/workflows/action-source-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
uses: ./action/.
2424
id: test-1
2525
with:
26+
version: ${{ github.sha }}
2627
config: ./.github/workflows/testdata/zero.yml
2728

2829
- name: "check: test output values"
@@ -36,6 +37,7 @@ jobs:
3637
id: test-2
3738
continue-on-error: true
3839
with:
40+
version: ${{ github.sha }}
3941
config: ./.github/workflows/testdata/total100.yml
4042

4143
- name: "check: test should have failed"
@@ -52,6 +54,7 @@ jobs:
5254
uses: ./action/.
5355
id: test-3
5456
with:
57+
version: ${{ github.sha }}
5558
profile: cover.out
5659
threshold-file: 0
5760
threshold-package: 0
@@ -64,6 +67,7 @@ jobs:
6467
id: test-4
6568
continue-on-error: true
6669
with:
70+
version: ${{ github.sha }}
6771
profile: cover.out
6872
threshold-file: 0
6973
threshold-package: 0
@@ -79,6 +83,7 @@ jobs:
7983
uses: ./action/.
8084
id: test-5
8185
with:
86+
version: ${{ github.sha }}
8287
config: ./.github/workflows/testdata/total100.yml
8388
threshold-file: 0
8489
threshold-package: 0
@@ -91,6 +96,7 @@ jobs:
9196
id: test-6
9297
continue-on-error: true
9398
with:
99+
version: ${{ github.sha }}
94100
profile: unexistant-profile.out
95101
debug: true
96102
threshold-file: 0

action-source.yml

Lines changed: 0 additions & 186 deletions
This file was deleted.

action/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ inputs:
129129
default: .badges/${{ github.ref_name }}/coverage.svg
130130
type: string
131131

132+
version:
133+
description: Version of go-test-coverage source to run
134+
required: false
135+
default: v2.14.3
136+
type: string
137+
132138
outputs:
133139
report:
134140
description: JSON-encoded string containing the detailed test coverage report.
@@ -161,7 +167,7 @@ runs:
161167
id: coverage
162168
shell: bash
163169
run: |
164-
go run github.com/vladopajic/go-test-coverage/v2@78970591c7bd59dc59031d62c210798ef618d1e0 \
170+
go run github.com/vladopajic/go-test-coverage/v2@${{ inputs.version }} \
165171
--config=${{ inputs.config || '***' }} \
166172
--profile=${{ inputs.profile || '***' }} \
167173
--source-dir=${{ inputs.source-dir || '***' }} \

0 commit comments

Comments
 (0)