Skip to content

Commit

Permalink
Integration with SonarCloud test apache#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Filippo Muschera committed Jun 19, 2023
1 parent f8fba29 commit 16877b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ jobs:
java-version: 11
distribution: 'zulu' # Alternative distribution options are available.

- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B --file pom.xml -P sonar-profile org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=FilippoMuschera_openjpaFork
run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=FilippoMuschera_openjpaFork

0 comments on commit 16877b1

Please sign in to comment.