Skip to content

Commit 16877b1

Browse files
author
Filippo Muschera
committed
Integration with SonarCloud test apache#4
1 parent f8fba29 commit 16877b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/sonar.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ jobs:
2929
java-version: 11
3030
distribution: 'zulu' # Alternative distribution options are available.
3131

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

0 commit comments

Comments
 (0)