feat(ci): add test statistics and coverage report#48
Draft
alexengrig wants to merge 2 commits into
Draft
Conversation
Generate a GitHub Actions job summary with formatting, clippy, test, and coverage results. Run tests via cargo llvm-cov nextest, upload JUnit/LCOV/HTML coverage artifacts, and keep the workflow free of paid third-party services. Closes #47 Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Grig Alex <alexengrigdev@gmail.com>
cargo llvm-cov report rejects --all-features/--locked build flags and cannot combine --lcov/--text/--html in one invocation, so the report step always failed CI. Split it into three separate report calls and drop the unsupported flags, using the default (flag-less) report format for the text summary since --text produces an annotated source dump rather than a TOTAL summary table. Also fix generate-ci-report.py's nextest summary regex: nextest omits the "N failed," segment entirely when there are no failures, so the previous pattern never matched a fully-passing run. Signed-off-by: Claude <noreply@anthropic.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
Closes #47.
Adds a GitHub-native CI report that summarizes formatting, clippy, tests, and coverage in the workflow job summary, and uploads machine-readable artifacts for future automation.
Changes
cargo llvm-cov nextestusing acinextest profileci-reportartifact on every run$GITHUB_STEP_SUMMARYllvm-tools-previewtorust-toolchain.tomlfor local/CI coverage supportgithub-actions-ciOpenSpec spec andAGENTS.mdReport sections
cargo llvm-covNon-goals (per issue)
Testing