Skip to content

ci(opencode): compile + test the OpenCode plugin on changes#1750

Open
chopratejas wants to merge 1 commit into
mainfrom
tejas/opencode-plugin-ci
Open

ci(opencode): compile + test the OpenCode plugin on changes#1750
chopratejas wants to merge 1 commit into
mainfrom
tejas/opencode-plugin-ci

Conversation

@chopratejas

Copy link
Copy Markdown
Collaborator

The OpenCode plugin (plugins/opencode) is the routing shim that carries headroom wrap opencode traffic through the proxy — but no CI job ever compiled it. It has typecheck/build/test scripts that only ran locally, so:

This adds a path-gated workflow that runs npm ci → typecheck → build → test whenever plugins/opencode/** (or this workflow) changes. Matches repo conventions (setup-node@v6, node 20, npm cache).

Verified green locally on main: tsc --noEmit clean, tsup build ok, 13 vitest tests pass.

Unblocks safe evaluation of the held dependency-bump PRs and protects the routing plugin going forward.

🤖 Generated with Claude Code

The plugins/opencode routing shim (which carries 'headroom wrap opencode'
traffic) had typecheck/build/test scripts but no CI ran them, so TypeScript
6.x / @types/node 26 major-bump PRs and source edits had zero build evidence.
Add a path-gated workflow running npm ci + typecheck + build + test whenever
the plugin (or this workflow) changes. Verified green locally on main
(tsc --noEmit clean, tsup build ok, 13 vitest tests pass).
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

PR governance

This PR does not yet satisfy the required template fields:

  • Missing required section Description.
  • Missing required section Type of Change.
  • Missing required section Changes Made.
  • Missing required section Testing.
  • Missing required section Real Behavior Proof.
  • Missing required section Review Readiness.
  • Check I have performed a self-review before requesting human review.
  • Check This PR is ready for human review or convert the PR back to draft.

Please update the PR body, or move the PR back to draft while it is still in progress.

@github-actions github-actions Bot added the status: needs author action Pull request body or readiness checklist still needs author updates label Jul 3, 2026

@JerrettDavis JerrettDavis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the new OpenCode plugin workflow against the plugin package scripts and existing workflow conventions. It is correctly path-gated, uses the repo's current checkout/setup-node pattern, caches the plugin lockfile, and runs the right npm ci/typecheck/build/test sequence. Checks are green; this looks ready.

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

Labels

status: needs author action Pull request body or readiness checklist still needs author updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants