Skip to content

test(ci): cover inlined workflows - #314

Merged
John-David Dalton (jdalton) merged 1 commit into
mainfrom
test/inlined-workflows
Dec 2, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
mainfrom
test/inlined-workflows

Conversation

@jdalton

Copy link
Copy Markdown
Collaborator

The registry test suite now exercises its repository-owned CI helpers. The tests verify exact Node and package-manager pins, frozen installs, and a signed release-token request scoped to this repository.

Follows the Wheelhouse removal.

@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test-only additions with no production or workflow behavior changes.

Overview
Adds Vitest integration coverage for two repo-owned CI helpers that replaced external Wheelhouse workflows.

mint-release-token tests spawn the script with a mocked fetch, assert it returns a token after calling the installation and access-token endpoints with a valid RS256 JWT, and that the token request is scoped to the current repo with contents: write. A second case asserts invalid GITHUB_REPOSITORY values fail before any network call.

with-toolchain tests (non-Windows) run the bash wrapper against a fake runner cache and command log, confirming it uses the pinned Node from .node-version, installs exact npm and pnpm versions, runs pnpm install --frozen-lockfile, then executes the passed command. Another case rejects packageManager entries that do not pin a full pnpm semver.

Reviewed by Cursor Bugbot for commit 3b7a6a6. Configure here.

@jdalton
John-David Dalton (jdalton) merged commit 5b19171 into main Dec 2, 2026
13 checks passed
@jdalton
John-David Dalton (jdalton) deleted the test/inlined-workflows branch December 2, 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.

2 participants