Skip to content

Commit 3f8167c

Browse files
committed
update
1 parent 05b572b commit 3f8167c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
- name: check test coverage
5151
id: coverage
5252
uses: vladopajic/go-test-coverage@v2
53+
continue-on-error: true # Should fail after coverage comment is posted
5354
with:
5455
config: ./.github/.testcoverage.yml
5556
profile: cover.ubuntu-latest.profile,cover.macos-latest.profile
@@ -88,4 +89,9 @@ jobs:
8889
```
8990
${{ fromJSON(steps.coverage.outputs.report) }}
9091
```
91-
edit-mode: replace
92+
edit-mode: replace
93+
94+
- name: "finally check coverage"
95+
if: steps.coverage.outcome == 'failure'
96+
shell: bash
97+
run: echo "coverage check failed" && exit 1

0 commit comments

Comments
 (0)