chore: Enhance frontend CI workflow with detailed SonarQube configurations
Some checks failed
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 31s
Docker Build and Push / build-and-push (push) Failing after 39s
LabFusion CI/CD Pipeline / service-adapters (push) Successful in 1m0s
Integration Tests / integration-tests (push) Failing after 38s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m43s
Frontend (React) / test (20) (push) Failing after 2m2s
Frontend (React) / build (push) Has been skipped
Frontend (React) / lighthouse (push) Has been skipped
LabFusion CI/CD Pipeline / frontend (push) Successful in 3m47s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Some checks failed
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 31s
Docker Build and Push / build-and-push (push) Failing after 39s
LabFusion CI/CD Pipeline / service-adapters (push) Successful in 1m0s
Integration Tests / integration-tests (push) Failing after 38s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m43s
Frontend (React) / test (20) (push) Failing after 2m2s
Frontend (React) / build (push) Has been skipped
Frontend (React) / lighthouse (push) Has been skipped
LabFusion CI/CD Pipeline / frontend (push) Successful in 3m47s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
### Summary of Changes - Added source inclusions and exclusions for JavaScript and JSX files in the CI workflow to improve SonarQube analysis. - Configured test inclusions and coverage exclusions to refine reporting and focus on relevant files. ### Expected Results - Improved accuracy of code quality metrics and test coverage reporting, facilitating better quality assurance processes.
This commit is contained in:
@@ -102,6 +102,10 @@ jobs:
|
||||
-Dsonar.projectName=LabFusion Frontend \
|
||||
-Dsonar.sources=src \
|
||||
-Dsonar.tests=src \
|
||||
-Dsonar.sources.inclusions=**/*.js,**/*.jsx \
|
||||
-Dsonar.sources.exclusions=**/*.test.js,**/*.test.jsx,**/*.spec.js,**/*.spec.jsx,src/index.js,src/setupTests.js \
|
||||
-Dsonar.tests.inclusions=**/*.test.js,**/*.test.jsx,**/*.spec.js,**/*.spec.jsx \
|
||||
-Dsonar.coverage.exclusions=**/*.test.js,**/*.test.jsx,**/*.spec.js,**/*.spec.jsx,src/index.js,src/setupTests.js \
|
||||
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \
|
||||
-Dsonar.coverageReportPaths=coverage/clover.xml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user