Added sonarcloud to GitHub workflow

This commit is contained in:
Erik C. Thauvin 2023-08-12 12:52:56 -07:00
parent 2c6493c631
commit 92ed30a415
5 changed files with 28 additions and 4 deletions

View file

@ -29,4 +29,19 @@ jobs:
run: ./bld download
- name: Run tests with bld
run: ./bld compile test
run: ./bld compile jacoco
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
args: >
-Dsonar.organization=ethauvin-github
-Dsonar.projectKey=my-ethauvin_HttpStatus
-Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml
-Dsonar.jacoco.reportPath=build/jacoco/jacoco.exec
-Dsonar.sources=src/main/java/
-Dsonar.tests=src/test/java/
-Dsonar.verbose=true