Skip to content

Commit

Permalink
OD-2677: added sonarqube scans (#9)
Browse files Browse the repository at this point in the history
* added sonarqube scan

---------

Co-authored-by: Sergio Castineyras <sercasti@gmail.com>
  • Loading branch information
scastineyras and sercasti authored Oct 16, 2024
1 parent 364c49c commit 27cee06
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 @@ -57,4 +57,16 @@ jobs:
run: |
ckan -c test.ini db init
- name: Run tests
run: pytest --ckan-ini=test.ini --cov=ckanext.cloudstorage --disable-warnings ckanext/cloudstorage/tests
run: pytest --ckan-ini=test.ini --cov=ckanext.cloudstorage --cov-report xml:coverage.xml --disable-warnings ckanext/cloudstorage/tests
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
with:
args: >
-Dsonar.projectKey=ckanext-cloudstorage
-Dsonar.sources=ckanext/cloudstorage
-Dsonar.tests=ckanext/cloudstorage/tests
-Dsonar.exclusions=ckanext/cloudstorage/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 27cee06

Please sign in to comment.