Skip to content

Commit fc76121

Browse files
authored
Merge pull request #186 from spicecodecli/run-sonarqube-with-gh-workflow
Run sonarqube with gh workflow
2 parents b9b4c41 + 7d8bcbd commit fc76121

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,12 @@ jobs:
3535
--cov-report=term-missing \
3636
--cov-report=xml # <-- this line generates coverage.xml
3737
38+
- name: SonarCloud Scan
39+
uses: SonarSource/sonarcloud-github-action@v2
40+
with:
41+
args: >
42+
-Dsonar.python.coverage.reportPaths=coverage.xml
43+
env:
44+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
45+
3846

sonar-project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sonar.projectKey=spicecodecli_spicecode
2+
sonar.organization=spicecodecli
3+
4+
5+
# This is the name and version displayed in the SonarCloud UI.
6+
#sonar.projectName=spicecode
7+
#sonar.projectVersion=1.0
8+
9+
10+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
11+
#sonar.sources=.
12+
13+
# Encoding of the source code. Default is default system encoding
14+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)