Skip to content

Commit cbeb78e

Browse files
committed
Switch to jshufro coverage fork
1 parent 329760c commit cbeb78e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
runs-on: ubuntu-latest
5454
needs: build # only run if the previous job finished successfully
5555
steps:
56+
- uses: jshufro/go-coverage-report@617a9ed3756854ba3a1649587539565be8a0b808
57+
with:
58+
coverage-artifact-name: "code-coverage"
59+
coverage-file-name: "cover.out"
60+
skip-comment: true
61+
id: report-step
5662
- name: Leave a comment with a link
5763
uses: actions/github-script@v6
5864
with:
@@ -61,12 +67,5 @@ jobs:
6167
issue_number: context.issue.number,
6268
owner: context.repo.owner,
6369
repo: context.repo.repo,
64-
body: '[Coverage Report](${{ needs.build.outputs.artifact-url }})'
70+
body: '[Coverage Report](${{ needs.build.outputs.artifact-url }})\n${{ steps.report-step.outputs.coverage_report }}'
6571
})
66-
- uses: fgrosse/go-coverage-report@ff33f0f3f96d20ecb97198100852d2af288094ff
67-
with:
68-
coverage-artifact-name: "code-coverage"
69-
coverage-file-name: "cover.out"
70-
skip-comment: true
71-
id: report-step
72-
- run: echo ${{ steps.report-step.outputs.coverage_report }}

0 commit comments

Comments
 (0)