Skip to content

Commit ec3070e

Browse files
Add sample coverage
1 parent d84389f commit ec3070e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- name: Create Check Run
2121
env:
2222
GH_TOKEN: ${{ github.token }}
23-
COVERAGE: cat /tmp/coverage.out | grep "Global test coverage"
23+
COVERAGE: 123
2424
run: |
2525
curl -L -X POST \
2626
-H "Accept: application/vnd.github+json" \
2727
-H "Authorization: Bearer $GH_TOKEN"\
2828
-H "X-GitHub-Api-Version: 2022-11-28" \
2929
https://api.github.com/repos/${{ github.repository }}/check-runs \
30-
-d '{"name":"Coverage", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"completed", "conclusion":"success","output":{"title":"$COVERAGE", "summary":""}}'
30+
-d '{"name":"Coverage ratio", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"completed", "conclusion":"success","output":{"title":"${{env.COVERAGE}}", "summary":""}}'

0 commit comments

Comments
 (0)