Skip to content

Commit 821826d

Browse files
committed
sonar: try to setup separate step for logging tests
1 parent 23844c9 commit 821826d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/sonar.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,18 @@ jobs:
4545
-Dsonar.projectKey=googleapis_google-auth-library-java \
4646
-Dsonar.organization=googleapis \
4747
-Dsonar.host.url=https://sonarcloud.io
48+
- name: Build and analyze for logging tests
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
51+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
52+
run: |
53+
mvn -B verify -P '!slf4j2x,slf4j2x-test' \
54+
-Dcheckstyle.skip \
55+
-Djacoco.skip=true \
56+
-DenableFullTestCoverage \
57+
-Dsonar.coverage.jacoco.xmlReportPaths=oauth2_http/target/site/jacoco/jacoco.xml \
58+
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
59+
-Dsonar.projectKey=googleapis_google-auth-library-java \
60+
-Dsonar.organization=googleapis \
61+
-Dsonar.host.url=https://sonarcloud.io
62+

0 commit comments

Comments
 (0)