File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 conan profile detect --force
5959 conan install . --build=missing -s build_type=Debug
6060
61- - name : Build
61+ - name : Build and Test
6262 run : |
6363 set -e
6464 cmake --preset=debug
7070 --output-file lcov.info \
7171 --rc geninfo_unexecuted_blocks=1 \
7272 --ignore-errors mismatch
73- lcov --remove lcov.info '/home/*' '/usr/*' 'tests/*' --output-file lcov_filtered.info
73+ # lcov --remove lcov.info '/home/*' '/usr/*' 'tests/*' --output-file lcov_filtered.info
74+ # TODO: need to solve mismatch before proceeding, custom docker image
7475
76+ # TODO: should coverage be published in the case that SonarQube fails?
7577 - name : Upload coverage to Coveralls
7678 uses : coverallsapp/github-action@v2
7779 with :
7880 path-to-lcov : lcov_filtered.info
81+
82+ sonarqube :
83+ runs-on : ubuntu-latest
84+ steps :
85+ - uses : actions/checkout@v4
86+ with :
87+ # Disabling shallow clones is recommended for improving the relevancy of reporting
88+ fetch-depth : 0
89+ - name : SonarQube Scan
90+ uses : SonarSource/sonarqube-scan-action@v6.0.0
91+ env :
92+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 1+ sonar.host.url =https://sonarcloud.io
2+ sonar.organization =milsanore
3+ sonar.projectKey =milsanore_trader.cpp
4+
5+ # Sources
6+ sonar.sources =src
7+ sonar.cfamily.compile-commands =build/Debug/compile_commands.json
8+
9+ # Optional: coverage (see below)
10+ sonar.cpp.coverage.reportPath =lcov.info
You can’t perform that action at this time.
0 commit comments