chore(ci): enable SonarQube #441
@@ -53,16 +53,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
uv run coverage run -m pytest -v --junitxml=testresults.xml
|
uv run coverage run -m pytest -v --junitxml=testresults.xml
|
||||||
uv run coverage report
|
uv run coverage report
|
||||||
# sed -i 's@${{ gitea.workspace }}@/github/workspace@g' coverage.xml
|
uv run coverage xml -q -o coverage.xml
|
||||||
|
sed -i 's@${{ gitea.workspace }}@/github/workspace@g' coverage.xml
|
||||||
|
|
||||||
- name: Minimize uv cache
|
- name: Minimize uv cache
|
||||||
run: uv cache prune --ci
|
run: uv cache prune --ci
|
||||||
|
|
||||||
# - name: SonarQube Scan
|
- name: SonarQube Scan
|
||||||
# uses: SonarSource/sonarqube-scan-action@v5.2.0
|
uses: SonarSource/sonarqube-scan-action@v7.1.0
|
||||||
# env:
|
env:
|
||||||
# SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
|
SONAR_HOST_URL: ${{ vars.SONAR_URL }}
|
||||||
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|
||||||
# - name: Set up environment for Snyk
|
# - name: Set up environment for Snyk
|
||||||
# run: |
|
# run: |
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
sonar.projectKey=roboluke
|
sonar.projectKey=roboluke
|
||||||
sonar.projectName=roboluke
|
sonar.projectName=roboluke
|
||||||
sonar.python.version=3.13
|
sonar.python.version=3.14
|
||||||
sonar.python.coverage.reportPaths=coverage.xml
|
sonar.python.coverage.reportPaths=coverage.xml
|
||||||
sonar.python.pylint.reportPaths=lintreport.txt
|
sonar.python.pylint.reportPaths=lintreport.txt
|
||||||
sonar.python.xunit.reportPath=testresults.xml
|
sonar.python.xunit.reportPath=testresults.xml
|
||||||
sonar.docker.hadolint.reportPaths=hadolint.out
|
sonar.docker.hadolint.reportPaths=hadolint.out
|
||||||
sonar.sources=Dockerfile,app
|
sonar.sources=Dockerfile,app
|
||||||
sonar.tests=tests
|
sonar.tests=tests
|
||||||
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
|
sonar.exclusions=.archive/**,.github/**,.gitea/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,requirements-dev.txt,requirements.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user