Skip to content

Commit

Permalink
Sonar on Ubuntu - Java 21 only
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenneaux committed Jan 18, 2024
1 parent aea44de commit 0dc350f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B -C verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar "-Dsonar.projectKey=nhenneaux_resilient-httpclient"
run: mvn -B -C verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Sonar
run: mvn -B -C org.sonarsource.scanner.maven:sonar-maven-plugin:sonar "-Dsonar.projectKey=nhenneaux_resilient-httpclient"
if: ${{ matrix.java == 21 && matrix.os == 'ubuntu-latest' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 0dc350f

Please sign in to comment.