From 77d0e61a3fd71a8ca1870fa0ea999eb797c1e9db Mon Sep 17 00:00:00 2001 From: Marco Randazzo Date: Wed, 6 Dec 2023 12:50:01 +0100 Subject: [PATCH] Improved sonarcloud coverage --- .github/workflows/ci.yml | 3 ++- .github/workflows/sonarcloud.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 521ab791d00..31e5b477e95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1980,7 +1980,8 @@ jobs: - name: Capture coverage info run: | - (cd build && gcovr --sonarqube --branches --output coverage.xml --root .. .) + cd build + gcovr --exclude="../extern/*" --sonarqube --branches --output coverage.xml --root .. .) - name: Print coverage info file run: | diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 81c3dd0ec5c..b018ca4609b 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -361,7 +361,8 @@ jobs: - name: Capture coverage info run: | - (cd build && gcovr --sonarqube --branches --output coverage.xml --root .. .) + cd build + gcovr --exclude="../extern/*" --sonarqube --branches --output coverage.xml --root .. .) - name: Print coverage info file run: |