File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,19 @@ jobs:
3535 --workspace
3636 --lcov
3737 --output-path lcov.info
38+ - name : Generate code coverage (xml)
39+ run : >
40+ cargo llvm-cov
41+ --cobertura
42+ --output-path cobertura-coverage.xml
3843 - name : Upload coverage artifact
3944 uses : actions/upload-artifact@v4
4045 with :
4146 name : coverage-report
4247 path : |
4348 lcov.info
4449 sonar-issues.json
50+ cobertura-coverage.xml
4551
4652 codecov :
4753 name : Upload to Codecov
6167 - name : Upload coverage reports to Codecov with GitHub Action
6268 uses : codecov/codecov-action@v5
6369 with :
64- files : coverage.out
70+ files : lcov.info
6571 token : ${{ secrets.CODECOV_TOKEN }} # required
6672 verbose : true # optional (default = false)
6773
8793 with :
8894 args : >
8995 -Dsonar.externalIssuesReportPaths=sonar-issues.json
90- -Dcommunity.rust.lcov.reportPaths=lcov.info
96+ -Dsonar.coverageReportPaths=cobertura-coverage.xml
Original file line number Diff line number Diff line change @@ -11,4 +11,6 @@ sonar.organization=sir-gon
1111# sonar.sources=.
1212
1313# Encoding of the source code. Default is default system encoding
14- # sonar.sourceEncoding=UTF-8
14+ # sonar.sourceEncoding=UTF-8
15+
16+ sonar.coverage.lcov.reportPaths =lcov.info
You can’t perform that action at this time.
0 commit comments