Skip to content

Commit f506f5b

Browse files
committed
another attempt to fix coverage on sonar
1 parent ff87458 commit f506f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
cd build
121121
lcov --keep-going --directory . --capture --output-file coverage.info
122122
lcov --remove coverage.info '*/test/*' '*/include/*' -o coverage.info
123+
cd ..
123124
gcovr -e test -e examples --sonarqube -u -o coverage.xml --exclude-throw-branches \
124125
--gcov-ignore-parse-errors --exclude-unreachable-branches
125126
@@ -140,7 +141,7 @@ jobs:
140141
-Dsonar.projectKey=simgrid_dtlmod
141142
-Dsonar.organization=simgrid
142143
-Dsonar.cfamily.compile-commands=build/compile_commands.json
143-
-Dsonar.coverageReportPaths=build/coverage.xml
144+
-Dsonar.coverageReportPaths=coverage.xml
144145
145146
- name: Build and deploy documentation
146147
if: github.ref == 'refs/heads/main' && env.TOKEN_GITHUB != ''

0 commit comments

Comments
 (0)