mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Update maven-build.yml
This commit is contained in:
parent
e15215bfa2
commit
9a6db63a95
1 changed files with 9 additions and 0 deletions
9
.github/workflows/maven-build.yml
vendored
9
.github/workflows/maven-build.yml
vendored
|
@ -27,3 +27,12 @@ jobs:
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven Wrapper
|
- name: Build with Maven Wrapper
|
||||||
run: ./mvnw -B package
|
run: ./mvnw -B package
|
||||||
|
|
||||||
|
- name: SonarQube Scan
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for PR decoration
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # SonarQube authentication token
|
||||||
|
run: ./mvnw sonar:sonar \
|
||||||
|
-Dsonar.projectKey=maven-java \
|
||||||
|
-Dsonar.host.url=http://localhost:9000 \
|
||||||
|
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue