Skip to content

Commit 287a138

Browse files
committed
feat: collect coverage report in sonar cloud
1 parent 50db38b commit 287a138

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ jobs:
6767
version: latest
6868
args: coverage
6969

70+
- name: Convert coverage to lcov format
71+
run: |
72+
go install github.com/jandelgado/gocov2lcov@latest
73+
gocov convert coverage/coverage.out | gocov2lcov > coverage/lcov.info
74+
7075
- name: SonarCloud Scan
7176
uses: SonarSource/[email protected]
7277
env:

0 commit comments

Comments
 (0)