Skip to content

Commit e6f5251

Browse files
committed
ci: post coverage report to PR
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent faa5776 commit e6f5251

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/linux.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
name: Linux
77

8-
permissions:
9-
pull-requests: write
10-
118
on:
129
workflow_call:
1310
inputs:
@@ -60,10 +57,10 @@ jobs:
6057
- name: Delete build directory
6158
run: rm -rf build
6259

63-
- name: Configure (source coverage)
60+
- name: Configure (test coverage)
6461
run: mkdir build && cd build && cmake ../tests/coverage
6562

66-
- name: Build and run (source coverage)
63+
- name: Build and run (test coverage)
6764
working-directory: build
6865
run: make coverage report.md
6966

@@ -77,10 +74,8 @@ jobs:
7774
- name: Report code coverage
7875
uses: marocchino/sticky-pull-request-comment@v3
7976
with:
80-
message: |
81-
```
82-
$(cat build/report.txt)
83-
```
77+
GITHUB_TOKEN: ${{ secrets.TOKEN_WRITE_PR }}
78+
path: build/report.md
8479

8580
- name: Delete build directory
8681
run: rm -rf build

0 commit comments

Comments
 (0)