@@ -156,20 +156,6 @@ jobs:
156156 reporter : java-junit
157157 fail-on-error : true
158158
159- - name : Run SonarCloud Analysis for Search
160- env :
161- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
162- working-directory : search-api/search-service
163- run : |
164- mvn sonar:sonar \
165- -DCLOUD_STORE_GROUP_ID=${CLOUD_STORE_GROUP_ID} \
166- -DCLOUD_STORE_ARTIFACT_ID=${CLOUD_STORE_ARTIFACT_ID} \
167- -DCLOUD_STORE_VERSION=${CLOUD_STORE_VERSION}
168- -Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform \
169- -Dsonar.organization=sunbird-knowlg-1 \
170- -Dsonar.host.url=https://sonarcloud.io \
171- -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
172-
173159 sonar-analysis-content :
174160 needs : test-content
175161 runs-on : ubuntu-latest
@@ -220,21 +206,36 @@ jobs:
220206 -Dsonar.host.url=https://sonarcloud.io \
221207 -Dsonar.coverage.jacoco.xmlReportPaths=taxonomy-api/taxonomy-service/target/site/jacoco/jacoco.xml
222208
223- # sonar-analysis-search:
224- # needs: test-search
225- # runs-on: ubuntu-latest
226- # steps:
227- # - uses: actions/checkout@v3
228- # - name: Set up JDK 17
229- # uses: actions/setup-java@v3
230- # with:
231- # java-version: '17'
232- # distribution: 'temurin'
233- # cache: 'maven'
234-
209+ sonar-analysis-search :
210+ needs : test-search
211+ runs-on : ubuntu-latest
212+ steps :
213+ - uses : actions/checkout@v3
214+ with :
215+ fetch-depth : 0
216+ - name : Set up JDK 17
217+ uses : actions/setup-java@v3
218+ with :
219+ java-version : ' 17'
220+ distribution : ' temurin'
221+ cache : ' maven'
222+ - name : Run SonarCloud Analysis for Search
223+ env :
224+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
225+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
226+ working-directory : search-api/search-service
227+ run : |
228+ mvn sonar:sonar \
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+ -Dsonar.projectKey=Sunbird-Knowlg_knowledge-platform \
233+ -Dsonar.organization=sunbird-knowlg-1 \
234+ -Dsonar.host.url=https://sonarcloud.io \
235+ -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
235236
236237 comment-pr :
237- needs : [sonar-analysis-content, sonar-analysis-taxonomy]
238+ needs : [sonar-analysis-content, sonar-analysis-taxonomy, sonar-analysis-search ]
238239 if : github.event_name == 'pull_request'
239240 runs-on : ubuntu-latest
240241 steps :
0 commit comments