Skip to content

Commit

Permalink
added sonarqube scan
Browse files Browse the repository at this point in the history
  • Loading branch information
sercasti committed Oct 10, 2024
1 parent 458e74b commit 756f7a4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,16 @@ jobs:
run: |
ckan -c test.ini db init
- name: Run tests
run: pytest --ckan-ini=test.ini --disable-warnings ckanext/geoview/tests
run: pytest --ckan-ini=test.ini --cov-report xml:coverage.xml --disable-warnings ckanext/geoview/tests
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
with:
args: >
-Dsonar.projectKey=ckanext-geoview
-Dsonar.sources=ckanext/geoview
-Dsonar.tests=ckanext/geoview/tests
-Dsonar.exclusions=ckanext/geoview/tests/**
-Dsonar.python.coverage.reportPaths=coverage.xml
env:
SONAR_TOKEN: ${{ secrets.SONAR_API_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_EXTERNAL_URL }}

0 comments on commit 756f7a4

Please sign in to comment.