Added Sonar JDK to worklow
This commit is contained in:
parent
92ed30a415
commit
9270788386
1 changed files with 14 additions and 9 deletions
23
.github/workflows/bld.yml
vendored
23
.github/workflows/bld.yml
vendored
|
@ -6,9 +6,12 @@ jobs:
|
|||
build-bld-project:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
SONAR_JDK: "17"
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
java-version: [ 17, 19, 20 ]
|
||||
java-version: [ 17, 20 ]
|
||||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
|
@ -33,15 +36,17 @@ jobs:
|
|||
|
||||
- name: SonarCloud Scan
|
||||
uses: sonarsource/sonarcloud-github-action@master
|
||||
if: success() && matrix.java-version == env.SONAR_JDK
|
||||
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
|
||||
with:
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue