ci(opencode): compile + test the OpenCode plugin on changes#1750
Open
chopratejas wants to merge 1 commit into
Open
ci(opencode): compile + test the OpenCode plugin on changes#1750chopratejas wants to merge 1 commit into
chopratejas wants to merge 1 commit into
Conversation
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).
Contributor
PR governanceThis PR does not yet satisfy the required template fields:
Please update the PR body, or move the PR back to draft while it is still in progress. |
JerrettDavis
approved these changes
Jul 3, 2026
JerrettDavis
left a comment
Collaborator
There was a problem hiding this comment.
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.
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.
The OpenCode plugin (
plugins/opencode) is the routing shim that carriesheadroom wrap opencodetraffic through the proxy — but no CI job ever compiled it. It hastypecheck/build/testscripts that only ran locally, so:This adds a path-gated workflow that runs
npm ci → typecheck → build → testwheneverplugins/opencode/**(or this workflow) changes. Matches repo conventions (setup-node@v6, node 20, npm cache).Verified green locally on main:
tsc --noEmitclean,tsupbuild 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