Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: check test coverage
id: coverage
uses: vladopajic/go-test-coverage@v2
continue-on-error: true # Should fail after coverage comment is posted
with:
config: ./.github/.testcoverage.yml
profile: cover.ubuntu-latest.profile,cover.macos-latest.profile
Expand Down Expand Up @@ -88,4 +89,9 @@ jobs:
```
${{ fromJSON(steps.coverage.outputs.report) }}
```
edit-mode: replace
edit-mode: replace

- name: "finally check coverage"
if: steps.coverage.outcome == 'failure'
shell: bash
run: echo "coverage check failed" && exit 1
6 changes: 6 additions & 0 deletions docs/github_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Here is an example of how to post comments with the coverage report to your pull
- name: check test coverage
id: coverage
uses: vladopajic/go-test-coverage@v2
continue-on-error: true # Should fail after coverage comment is posted
with:
config: ./.github/.testcoverage.yml

Expand Down Expand Up @@ -84,4 +85,9 @@ Here is an example of how to post comments with the coverage report to your pull
${{ fromJSON(steps.coverage.outputs.report) }}
```
edit-mode: replace

- name: "finally check coverage"
if: steps.coverage.outcome == 'failure'
shell: bash
run: echo "coverage check failed" && exit 1
```
Loading