Skip to content

Add CI with supercov coverage floors - #30

Closed
Nedomas wants to merge 1 commit into
e2e-coverage-clientfrom
ci-workflow
Closed

Nedomas wants to merge 1 commit into
e2e-coverage-clientfrom
ci-workflow

Conversation

@Nedomas

@Nedomas Nedomas commented Oct 17, 2026

Copy link
Copy Markdown
Member

Third of three stacked PRs (server → client packages → CI).

What

Adds .github/workflows/test.yml, the repo's first CI. On every PR and on pushes to main, three jobs run in parallel, each with a Postgres service container:

  • server: builds @superinterface/react (the server imports its build), then runs the full server suite under supercov.
  • react: builds react, then runs the vitest suite, which starts the real server.
  • embeds: installs Chromium, builds root-element, react and javascript, then runs both Playwright suites.

.github/scripts/checkCoverage.mjs fails a job when its tests fail, its supercov run isn't valid, or coverage drops below the floor:

Package Lines Branches MC/DC
server, javascript, root-element 100% 100% 100%
react 100% ≥ 99.3% ≥ 99.4% (two documented gaps)

Secrets

Real-provider integration tests read TEST_OPENAI_API_KEY, TEST_ANTHROPIC_API_KEY, TEST_GOOGLE_API_KEY, TEST_OPENROUTER_API_KEY and the TEST_AZURE_* values (same names as packages/server/.env.test). Without them those tests skip with a reason and CI stays green; Docker computer-use tests skip in CI because the computer-use-mcp repo isn't checked out.

Verified

All three jobs' steps pass locally in a clean checkout without .env files or provider keys. This PR's own run is the first on GitHub.

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
superinterface-examples-audio-thread Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-audio-thread-dialog-realtime Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-code-canvas Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-components Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-form-filling Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-group-iframe Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-primitives Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-reset-thread Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-self-hosted Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-thread Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-thread-dialog Ready Ready Preview Oct 17, 2026 9:51am UTC
superinterface-examples-thread-dialog-script-tag Building Building Preview Oct 17, 2026 9:51am UTC

Request Review

@Nedomas

Nedomas commented Oct 17, 2026

Copy link
Copy Markdown
Member Author

Closing in favour of a tests-first stack: one PR that locks current behaviour with tests only (no source changes), then a separate PR with the source changes, then CI.

@Nedomas Nedomas closed this Oct 17, 2026
@Nedomas
Nedomas deleted the ci-workflow branch October 17, 2026 09:56

This branch was successfully deployed

12 active deployments
Preview – superinterface-examples-thread-dialog — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-self-hosted — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-code-canvas — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-reset-thread — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-components — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-audio-thread — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-audio-thread-dialog-realtime — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-thread — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-form-filling — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-primitives — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-group-iframe — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
Preview – superinterface-examples-thread-dialog-script-tag — c28e1e30 Deployed Oct 17, 2026 by vercel[bot]
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