Skip to content

Commit

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

- name: Build and analyze
- name: Build
working-directory: jhdf
run: ./gradlew build

- name: Checkstyle
working-directory: jhdf
run: ./gradlew checkstyleMain checkstyleTest

- name: SpotBugs
working-directory: jhdf
run: ./gradlew spotbugsMain spotbugsTest

- name: Jacoco Coverage Report
working-directory: jhdf
run: ./gradlew jacocoTestReport

- name: Sonar
working-directory: jhdf
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
run: ./gradlew sonar --info

0 comments on commit 63303c4

Please sign in to comment.