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:
|
build-bld-project:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
SONAR_JDK: "17"
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [ 17, 19, 20 ]
|
java-version: [ 17, 20 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
|
@ -33,15 +36,17 @@ jobs:
|
||||||
|
|
||||||
- name: SonarCloud Scan
|
- name: SonarCloud Scan
|
||||||
uses: sonarsource/sonarcloud-github-action@master
|
uses: sonarsource/sonarcloud-github-action@master
|
||||||
|
if: success() && matrix.java-version == env.SONAR_JDK
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
args: >
|
with:
|
||||||
-Dsonar.organization=ethauvin-github
|
args: >
|
||||||
-Dsonar.projectKey=my-ethauvin_HttpStatus
|
-Dsonar.organization=ethauvin-github
|
||||||
-Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml
|
-Dsonar.projectKey=my-ethauvin_HttpStatus
|
||||||
-Dsonar.jacoco.reportPath=build/jacoco/jacoco.exec
|
-Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml
|
||||||
-Dsonar.sources=src/main/java/
|
-Dsonar.jacoco.reportPath=build/jacoco/jacoco.exec
|
||||||
-Dsonar.tests=src/test/java/
|
-Dsonar.sources=src/main/java/
|
||||||
-Dsonar.verbose=true
|
-Dsonar.tests=src/test/java/
|
||||||
|
-Dsonar.verbose=true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue