Skip to content

Commit

Permalink
Use gradle to run 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmudd committed Nov 17, 2023
1 parent 18265a9 commit ab8e572
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@ jobs:
distribution: 'temurin'
cache: 'gradle'

- name: SonarQube PR
if: github.event_name == 'pull_request'
working-directory: jhdf
run: |
./gradlew \
-Dsonar.token=${{ secrets.SONAR_TOKEN }} \
-Dsonar.pullrequest.branch=${{ github.ref }} \
-Dsonar.pullrequest.key=${{ github.event.number }} \
-Dsonar.pullrequest.base=${{ github.base.ref }} \
-Dsonar.pullrequest.github.repository=${{ github.server_url }}/${{ github.repository }} \
checkstyleMain checkstyleTest spotbugsMain spotbugsTest jacocoTestReport sonar
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build checkstyleMain checkstyleTest spotbugsMain spotbugsTest jacocoTestReport sonar --info

0 comments on commit ab8e572

Please sign in to comment.