chore: Enhance SonarQube configuration in CI workflows
Some checks failed
Integration Tests / integration-tests (push) Failing after 28s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 38s
API Gateway (Java Spring Boot) / test (17) (push) Failing after 1m51s
API Gateway (Java Spring Boot) / test (21) (push) Failing after 2m0s
API Gateway (Java Spring Boot) / build (push) Has been skipped
API Gateway (Java Spring Boot) / security (push) Has been skipped
Some checks failed
Integration Tests / integration-tests (push) Failing after 28s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 38s
API Gateway (Java Spring Boot) / test (17) (push) Failing after 1m51s
API Gateway (Java Spring Boot) / test (21) (push) Failing after 2m0s
API Gateway (Java Spring Boot) / build (push) Has been skipped
API Gateway (Java Spring Boot) / security (push) Has been skipped
### Summary of Changes - Added paths for JaCoCo coverage reports and JUnit test reports in the SonarQube configuration for `all-services.yml` and `api-gateway.yml` to improve code quality analysis. ### Expected Results - Improved accuracy of code coverage and test reporting in SonarQube, enhancing the overall quality assurance process in the CI workflows.
This commit is contained in:
@@ -123,7 +123,9 @@ jobs:
|
|||||||
-Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
|
-Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
|
||||||
-Dsonar.login="${{ secrets.SONAR_TOKEN }}" \
|
-Dsonar.login="${{ secrets.SONAR_TOKEN }}" \
|
||||||
-Dsonar.projectKey=labfusion-api-gateway \
|
-Dsonar.projectKey=labfusion-api-gateway \
|
||||||
-Dsonar.projectName=LabFusion-API-Gateway
|
-Dsonar.projectName=LabFusion-API-Gateway \
|
||||||
|
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
|
||||||
|
-Dsonar.junit.reportPaths=target/surefire-reports
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
if: ${{ !inputs.run_tests_only && !inputs.run_sonar_only }}
|
if: ${{ !inputs.run_tests_only && !inputs.run_sonar_only }}
|
||||||
|
|||||||
@@ -155,7 +155,9 @@ jobs:
|
|||||||
-Dsonar.projectKey=labfusion-api-gateway \
|
-Dsonar.projectKey=labfusion-api-gateway \
|
||||||
-Dsonar.projectName=LabFusion-API-Gateway \
|
-Dsonar.projectName=LabFusion-API-Gateway \
|
||||||
-Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
|
-Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
|
||||||
-Dsonar.token="${{ secrets.SONAR_TOKEN }}"
|
-Dsonar.token="${{ secrets.SONAR_TOKEN }}" \
|
||||||
|
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
|
||||||
|
-Dsonar.junit.reportPaths=target/surefire-reports
|
||||||
|
|
||||||
- name: Fail if no test reports found
|
- name: Fail if no test reports found
|
||||||
if: env.TEST_REPORTS_EXIST == 'false'
|
if: env.TEST_REPORTS_EXIST == 'false'
|
||||||
|
|||||||
Reference in New Issue
Block a user