Skip to content

ci: run the test suite and coverage gate on pull requests - #31

Merged
joeblau merged 1 commit into
mainfrom
ci/pr-tests
Sep 28, 2026
Merged

joeblau merged 1 commit into
mainfrom
ci/pr-tests

Conversation

@joeblau

@joeblau joeblau commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Tests and the 100% coverage gate ran only after merging to main, so pull requests were gated on the docs build alone. #30 was verified locally, not by CI. This adds a Tests workflow, modelled on bloxwap/hyperliquid's tests_offline, that runs on every pull request:

  • Tests and coverage gate: npm run coverage, the same command contributors run. It builds icons, WASM and TypeScript, runs the suite, and fails if any file drops below 100% line/branch/function coverage.
  • Package entry points: every exports subpath must import by package name in plain Node. The tests import dist/ directly, so a broken exports map would otherwise pass.

It has no path filter, so it can be made a required status check without blocking docs-only PRs. Making it required is a branch-protection setting; this PR doesn't change it.

🤖 Generated with Claude Code

Tests and the 100% coverage gate previously ran only after merging to main,
so pull requests were gated on the docs build alone. The new Tests workflow
runs `npm run coverage` on every pull request and checks that each published
entry point imports by package name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@joeblau
joeblau merged commit 2cd2e51 into main Sep 28, 2026
2 checks passed
@joeblau
joeblau deleted the ci/pr-tests branch September 28, 2026 16:05
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.

1 participant