File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Here is an example of how to post comments with the coverage report to your pull
4848 - name: check test coverage
4949 id: coverage
5050 uses: vladopajic/go-test-coverage@v2
51+ continue-on-error: true # Should fail after coverage comment is posted
5152 with:
5253 config: ./.github/.testcoverage.yml
5354
@@ -84,4 +85,9 @@ Here is an example of how to post comments with the coverage report to your pull
8485 ${{ fromJSON(steps.coverage.outputs.report) }}
8586 ```
8687 edit-mode : replace
88+
89+ - name : " finally check coverage"
90+ if : steps.coverage.outcome == 'failure'
91+ shell : bash
92+ run : echo "coverage check failed" && exit 1
8793` ` `
You can’t perform that action at this time.
0 commit comments