Skip to content

Commit 3b8436f

Browse files
authored
Merge pull request #3 from sir-gon/develop
[CONFIG] sonarcloud coverage file path added.
2 parents e05a327 + f9bc4bc commit 3b8436f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.github/workflows/rust-coverage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Upload coverage reports to Codecov with GitHub Action
6262
uses: codecov/codecov-action@v5
6363
with:
64-
files: coverage.out
64+
files: lcov.info
6565
token: ${{ secrets.CODECOV_TOKEN }} # required
6666
verbose: true # optional (default = false)
6767

@@ -87,4 +87,3 @@ jobs:
8787
with:
8888
args: >
8989
-Dsonar.externalIssuesReportPaths=sonar-issues.json
90-
-Dcommunity.rust.lcov.reportPaths=lcov.info

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
my-clippy-report.json
22
sonar-issues.json
3+
4+
lcov.info
5+
36
/target
47

58

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ update: dependencies outdated
9090
upgrade: update
9191

9292
clean:
93+
rm -vf lcov.info
94+
rm -vf my-clippy-report.json
95+
rm -vf sonar-issues.json
9396
rm -vfr ./target || true
9497
mkdir -p ./target
9598
touch ./target/.gitkeep

sonar-project.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)