Skip to content

Commit 61a1383

Browse files
committed
Added analysis for taxonomy.
1 parent 68306ed commit 61a1383

1 file changed

Lines changed: 1 addition & 65 deletions

File tree

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

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -120,42 +120,6 @@ jobs:
120120
reporter: java-junit
121121
fail-on-error: true
122122

123-
test-search:
124-
needs: build
125-
runs-on: ubuntu-latest
126-
steps:
127-
- uses: actions/checkout@v3
128-
- name: Set up JDK 11
129-
uses: actions/setup-java@v3
130-
with:
131-
java-version: '11'
132-
distribution: 'temurin'
133-
cache: 'maven'
134-
135-
- name: Run Search Tests
136-
working-directory: search-api/search-service/
137-
run: |
138-
mvn clean test org.jacoco:jacoco-maven-plugin:0.8.8:prepare-agent test org.jacoco:jacoco-maven-plugin:0.8.8:report \
139-
-DCLOUD_STORE_GROUP_ID=${CLOUD_STORE_GROUP_ID} \
140-
-DCLOUD_STORE_ARTIFACT_ID=${CLOUD_STORE_ARTIFACT_ID} \
141-
-DCLOUD_STORE_VERSION=${CLOUD_STORE_VERSION}
142-
143-
- name: Upload Search Test Results
144-
if: always()
145-
uses: actions/upload-artifact@v4
146-
with:
147-
name: search-test-results
148-
path: 'search-api/search-service/target/surefire-reports/*.xml'
149-
150-
- name: Publish Search Test Results
151-
if: always()
152-
uses: dorny/test-reporter@v1
153-
with:
154-
name: Search Test Results
155-
path: search-api/search-service/target/surefire-reports/*.xml
156-
reporter: java-junit
157-
fail-on-error: true
158-
159123
sonar-analysis-content:
160124
needs: test-content
161125
runs-on: ubuntu-latest
@@ -206,35 +170,8 @@ jobs:
206170
-Dsonar.host.url=https://sonarcloud.io \
207171
-Dsonar.coverage.jacoco.xmlReportPaths=taxonomy-api/taxonomy-service/target/site/jacoco/jacoco.xml
208172
209-
sonar-analysis-search:
210-
needs: test-search
211-
runs-on: ubuntu-latest
212-
steps:
213-
- uses: actions/checkout@v3
214-
- name: Set up JDK 17
215-
uses: actions/setup-java@v3
216-
with:
217-
java-version: '17'
218-
distribution: 'temurin'
219-
cache: 'maven'
220-
- name: Run SonarCloud Analysis for Search
221-
env:
222-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
223-
working-directory: search-api/search-service
224-
run: |
225-
mvn sonar:sonar \
226-
-DCLOUD_STORE_GROUP_ID=${CLOUD_STORE_GROUP_ID} \
227-
-DCLOUD_STORE_ARTIFACT_ID=${CLOUD_STORE_ARTIFACT_ID} \
228-
-DCLOUD_STORE_VERSION=${CLOUD_STORE_VERSION} \
229-
-Dsonar.projectKey=vinodbhorge_knowledge-platform \
230-
-Dsonar.organization=vinodbbhorge \
231-
-Dsonar.host.url=https://sonarcloud.io \
232-
-Dsonar.coverage.jacoco.xmlReportPaths=search-api/search-service/target/site/jacoco/jacoco.xml \
233-
-Dsonar.java.binaries=target/classes \
234-
-Dsonar.java.test.binaries=target/test-classes
235-
236173
comment-pr:
237-
needs: [sonar-analysis-content, sonar-analysis-taxonomy, sonar-analysis-search]
174+
needs: [sonar-analysis-content, sonar-analysis-taxonomy]
238175
if: github.event_name == 'pull_request'
239176
runs-on: ubuntu-latest
240177
steps:
@@ -247,7 +184,6 @@ jobs:
247184
#### Quality Gate Results for Services:
248185
- [Content Service Analysis](https://sonarcloud.io/dashboard?id=vinodbhorge_content)
249186
- [Taxonomy Service Analysis](https://sonarcloud.io/dashboard?id=vinodbhorge_taxonomy)
250-
- [Search Service Analysis](https://sonarcloud.io/dashboard?id=vinodbhorge_search)
251187
252188
Please review the analysis results for each service. Ensure all quality gates are passing before merging.`;
253189

0 commit comments

Comments
 (0)