Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
woodfell committed Nov 13, 2023
1 parent 28a1089 commit 28a9afc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup
run: |
sudo apt-get update && sudo apt-get install llvm gcovr gcov
- name: Run C tests
env:
CC: clang
CXX: clang++
run: |
cmake -S c -B build -DCODE_COVERAGE=ON &&
cmake -B build --target ccov-all-export -j 8 &&
gcovr -j 8 --gcov-executable gcov --sonarqube build/code_coverage.xml --root c
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand All @@ -26,3 +37,4 @@ jobs:
-Dsonar.exclusions=java/**
-Dsonar.verbose=true
-Dsonar.c.file.suffixes=- -Dsonar.cpp.file.suffixes=-
-Dsonar.coverageReportPaths=build/code_coverage.xml

0 comments on commit 28a9afc

Please sign in to comment.