Skip to content

Commit

Permalink
Add sonar scan
Browse files Browse the repository at this point in the history
Signed-off-by: Marinov Avgustin <[email protected]>
  • Loading branch information
avgustinmm committed Oct 7, 2024
1 parent 952c461 commit 42b4425
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

services:
rabbitmq:
Expand All @@ -36,9 +38,11 @@ jobs:
- name: Check file license headers
run: mvn license:check --batch-mode

- name: Run tests & javadoc
run: mvn verify javadoc:javadoc --batch-mode
#
# - name: Scan (Sonar)
# - name: Run tests & javadoc
# if: ${{ BRANCH_NAME != 'master' }}
# run: mvn verify javadoc:javadoc --batch-mode

- name: Run tests & javadoc & Scan (Sonar)
# if: ${{ BRANCH_NAME == 'master' }}
# run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=eclipse-master -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=eclipse-master -Dsonar.login=$SONARCLOUD_TOKEN --batch-mode
# run: mvn verify javadoc:javadoc org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=bir-eclipse-hawkbit --batch-mode

0 comments on commit 42b4425

Please sign in to comment.