Skip to content

Commit

Permalink
Use gradle to run
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmudd committed Nov 15, 2023
1 parent 53a598c commit b82b42b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
- name: SonarQube PR
if: github.event_name == 'pull_request'
working-directory: jhdf
run: >
./gradlew sonarqube
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.pullrequest.branch=${{ github.ref }}
-Dsonar.pullrequest.key=${{ github.ref.name }}
-Dsonar.pullrequest.base=${{ github.base.ref }}
-Dsonar.pullrequest.github.repository=${{ github.server_url }}/${{ github.repository }}

0 comments on commit b82b42b

Please sign in to comment.