Skip to content

Commit b0ded7d

Browse files
committed
Updated the sonar analysis into a diff step
1 parent 0769e09 commit b0ded7d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/Code-Quality-check.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,21 @@ jobs:
225225
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
226226
working-directory: search-api/search-service
227227
run: |
228+
mvn clean compile \
229+
-DCLOUD_STORE_GROUP_ID=${CLOUD_STORE_GROUP_ID} \
230+
-DCLOUD_STORE_ARTIFACT_ID=${CLOUD_STORE_ARTIFACT_ID} \
231+
-DCLOUD_STORE_VERSION=${CLOUD_STORE_VERSION}
232+
228233
mvn sonar:sonar \
229234
-DCLOUD_STORE_GROUP_ID=${CLOUD_STORE_GROUP_ID} \
230235
-DCLOUD_STORE_ARTIFACT_ID=${CLOUD_STORE_ARTIFACT_ID} \
231236
-DCLOUD_STORE_VERSION=${CLOUD_STORE_VERSION} \
232237
-Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform \
233238
-Dsonar.organization=sunbird-knowlg-1 \
234239
-Dsonar.host.url=https://sonarcloud.io \
235-
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
240+
-Dsonar.java.binaries=target/classes \
241+
-Dsonar.java.test.binaries=target/test-classes \
242+
-Dsonar.coverage.jacoco.xmlReportPaths=search-api/search-service/target/site/jacoco/jacoco.xml
236243
237244
comment-pr:
238245
needs: [sonar-analysis-content, sonar-analysis-taxonomy, sonar-analysis-search]

0 commit comments

Comments
 (0)