Skip to content

Commit

Permalink
Run Sonar with Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jan 15, 2024
1 parent bb83bd9 commit 20d4c69
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,23 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: 'maven'
cache-dependency-path: '**/pom.xml'

- name: sonar
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
- name: build with docs and coverage
run: |
mvn -q -N "io.takari:maven:${{env.IO_TAKARI_MAVEN_WRAPPER_VERSION}}:wrapper" "-Dmaven=${{env.MAVEN_VERSION}}"
./mvnw -B -ntp javadoc:javadoc verify --file pom.xml -Pcoverage sonar:sonar -Dsonar.projectKey=smallrye_smallrye-common -Dsonar.login=$SONAR_TOKEN
./mvnw javadoc:javadoc verify -Pcoverage
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17

- name: sonar
run: ./mvnw sonar:sonar -Dsonar.projectKey=smallrye_smallrye-common -Dsonar.token=${{secrets.SONAR_TOKEN}}

0 comments on commit 20d4c69

Please sign in to comment.