ci: add codecov
integration
#184
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces comprehensive code coverage reporting across multiple packages and standardizes the test coverage configuration. The main improvements include adding Codecov integration to the CI workflow, configuring Istanbul as the coverage provider for all relevant packages, and updating dependencies to use a centralized version management approach via the pnpm workspace catalog.
CI/CD and Code Coverage Integration:
codecov.yml
configuration file to enforce minimum coverage thresholds (50%) for all major packages and to enable Codecov comments on pull requests..github/workflows/pr-builder.yml
to upload coverage reports for each package to Codecov after running tests, ensuring each package's coverage is tracked independently. Also, added concurrency control to prevent duplicate builds for the same PR. [1] [2]Testing and Coverage Configuration:
vitest.config.ts
files across packages to use Istanbul as the coverage provider, ensuring consistent coverage reporting. [1] [2] [3] [4] [5] [6]test
script inpackages/vue/package.json
to use the defaultvitest
command, simplifying test execution.Dependency Management:
package.json
files to sourcevitest
,@vitest/browser
, and@vitest/coverage-istanbul
from the pnpm workspace catalog, ensuring consistent versions across packages. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]vitest
,@vitest/browser
, and@vitest/coverage-istanbul
to thepnpm-workspace.yaml
catalog for centralized dependency management.Miscellaneous:
packages/vue/tsconfig.eslint.json
to adjust included files for linting.vitest.config.ts
for consistency and maintainability.These changes collectively ensure robust, consistent, and visible test coverage reporting across the codebase, improving code quality and maintainability.
Related Issues
Related PRs
Checklist
Security checks