ci(forgejo-actions): analyze project with sonarqube
Some checks failed
Build, test and publish the Quarkus libraries / build (push) Has been cancelled
Some checks failed
Build, test and publish the Quarkus libraries / build (push) Has been cancelled
This commit is contained in:
parent
797c3ed950
commit
4055728eeb
1 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: https://github.com/actions/setup-java@v4
|
uses: https://github.com/actions/setup-java@v4
|
||||||
|
@ -35,7 +37,11 @@ jobs:
|
||||||
run: chmod +x mvnw
|
run: chmod +x mvnw
|
||||||
|
|
||||||
- name: Build and run tests
|
- name: Build and run tests
|
||||||
run: ./mvnw verify
|
run: ./mvnw verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=quarkus-commons -Dsonar.projectName='quarkus-commons'
|
||||||
|
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }
|
||||||
|
|
||||||
- name: Upload libs to Gitea Maven Registry
|
- name: Upload libs to Gitea Maven Registry
|
||||||
if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref == 'refs/heads/main'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue