Skip to content

ci: report test coverage and upload artifacts for frontend and indexer - #327

Open
jeffrey-graham wants to merge 1 commit into
prism-explorer:mainfrom
jeffrey-graham:ci/report-test-coverage-314
Open

jeffrey-graham wants to merge 1 commit into
prism-explorer:mainfrom
jeffrey-graham:ci/report-test-coverage-314

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Summary

  • Adds @vitest/coverage-v8 (4.1.10) and "test:coverage": "vitest run --coverage" to both frontend/package.json and indexer/package.json.
  • Configures V8 coverage (reporter: ["text", "html", "lcov"], reportsDirectory: "./coverage") in frontend/vitest.config.mts and indexer/vitest.config.ts, and ignores coverage/ in .gitignore.
  • Updates .github/workflows/ci.yml to run npm run test:coverage in both the frontend and indexer jobs (printing coverage percentages in the job logs) and upload frontend-coverage and indexer-coverage artifacts via actions/upload-artifact@v4.

Verification

  • Ran npm ci && npm run test:coverage in indexer/ and verified V8 text summary + coverage/ output.
  • Ran npm ci && npx vitest run src/lib/format.test.ts --coverage in frontend/ and verified V8 text summary + coverage/ output.

Closes #314

@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

@jeff-graham-ai is attempting to deploy a commit to the thewealthyplace100-8633's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report test coverage in CI (follow-up to #105)

2 participants