ci: add test reporting coverage summary#13
Merged
Conversation
There was a problem hiding this comment.
2 issues found across 51 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="THREAT_MODEL.md">
<violation number="1" location="THREAT_MODEL.md:75">
P2: This bullet overstates workflow hardening: at least one third-party action (`dorny/test-reporter@v3`) is not pinned by commit SHA.</violation>
</file>
<file name="src/index.ts">
<violation number="1" location="src/index.ts:16">
P2: The `endsWith("dist/index.js")` fallback can trigger `run()` for unrelated entry scripts, causing unintended side effects when this module is imported in processes whose argv script path matches that suffix.</violation>
</file>
Note: This PR contains a large number of files. Free-tier reviews are limited to 40 files per PR, so some files may not have been reviewed. cubic prioritizes the most important files to review. Paid plans can review more files.
You're on the cubic free plan with 10 free PR reviews remaining this month. Upgrade for unlimited reviews.
Re-trigger cubic
Bundle Size Report
|
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Verification
Notes
Summary by cubic
Adds CI test reporting for Vitest and a coverage summary in PR checks, and migrates repo tooling to Vite/Vitest/Oxlint without changing the action’s runtime or API.
New Features
dorny/test-reporter@v3when the PR head repo matches this repo; skips on forks/read-only tokens.reports/vitest-junit.xmlandcoverage/coverage-summary.jsonwithchecks: writepermission.Refactors
viteto bundlesrc/index.tstodist/index.js(CommonJS); tests run onvitest; lint usesoxlint.@/*alias and bundler-style TS config; updates scripts:lint,typecheck,test,test:ci,build.@vercel/ncc, intermediatelib/, anddist/licenses.txt; runtime behavior and action API unchanged.Written for commit 7b8af4b. Summary will update on new commits. Review in cubic