chore: Simplify frontend CI workflow by removing clover.xml coverage check
Some checks failed
Integration Tests / integration-tests (push) Failing after 32s
Integration Tests / performance-tests (push) Has been skipped
Frontend (React) / test (20) (push) Successful in 1m48s
Docker Build and Push / build-and-push (push) Failing after 3m4s
Frontend (React) / build (push) Successful in 2m33s
Frontend (React) / lighthouse (push) Has been skipped
Some checks failed
Integration Tests / integration-tests (push) Failing after 32s
Integration Tests / performance-tests (push) Has been skipped
Frontend (React) / test (20) (push) Successful in 1m48s
Docker Build and Push / build-and-push (push) Failing after 3m4s
Frontend (React) / build (push) Successful in 2m33s
Frontend (React) / lighthouse (push) Has been skipped
### Summary of Changes - Removed the check for `clover.xml` in the CI workflow to streamline coverage reporting. - Updated Vitest configuration to exclude `clover` from the coverage reporters and added options for relative paths and cleaning. ### Expected Results - Enhanced clarity and efficiency of the CI process by focusing on relevant coverage reports, improving overall workflow performance.
This commit is contained in:
@@ -82,11 +82,6 @@ jobs:
|
||||
else
|
||||
echo "✗ lcov.info missing"
|
||||
fi
|
||||
if [ -f "coverage/clover.xml" ]; then
|
||||
echo "✓ clover.xml found"
|
||||
else
|
||||
echo "✗ clover.xml missing"
|
||||
fi
|
||||
|
||||
- name: Send results to SonarQube
|
||||
run: |
|
||||
@@ -106,8 +101,7 @@ jobs:
|
||||
-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
|
||||
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
|
||||
- name: Test results summary
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user