Skip to content

Commit

Permalink
Restore sonarcloud analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgay committed Dec 11, 2021
1 parent 6b98266 commit e75872c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,23 @@ jobs:
- name: Cache
uses: actions/cache@v2.1.6
with:
path: ~/.m2/repository
key: local-maven-repository
path: |
~/.m2/repository
~/.sonar/cache
key: ${{ runner.os }}-m2
- name: Build with Maven
run: ./mvnw -B verify -Prun-coverage
- name: Report coverage
run: ./mvnw -B coveralls:report -DrepoToken="${{ env.coveralls_token }}"
if: ${{ github.repository_owner == 'jcgay' && github.actor != 'dependabot[bot]' }}
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
- name: Analyze with sonarcloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -B sonar:sonar -Dsonar.projectKey=fr.jcgay.maven:maven-profiler -Dsonar.organization=jcgay-github -Dsonar.host.url=https://sonarcloud.io
if: ${{ github.repository_owner == 'jcgay' && github.actor != 'dependabot[bot]' }}

0 comments on commit e75872c

Please sign in to comment.