Skip to content

update dependencies and runtime, switch to curated schemas, other cleanups - #18

Open
mvdan wants to merge 5 commits into
mainfrom
bumps
Open

update dependencies and runtime, switch to curated schemas, other cleanups#18
mvdan wants to merge 5 commits into
mainfrom
bumps

Conversation

@mvdan

@mvdan mvdan commented Jul 16, 2026

Copy link
Copy Markdown
Member

(see commit messages - please do not squash)

@mvdan

mvdan commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

Split into many commits to hopefully simplify review, PTAL. I'm no expert in any of this, so I'm relying quite a bit on Fable.

mvdan added 5 commits July 16, 2026 13:45
Bump @actions/core, @actions/exec, and @actions/tool-cache to their
latest CommonJS majors; the newest majors are ESM-only and would
require migrating the action and its tests to ESM.

Bump the dev dependencies to their latest versions, with two caveats:
jest 30 removed the toBeCalled matcher aliases, and TypeScript stays
on 5.x since ts-jest caps it below 7.0 and 6.0 force-enables
esModuleInterop, which breaks the spy-based tests.

Deny the unrs-resolver postinstall script, which npm blocks with a
warning and jest works fine without.

Rebuild dist accordingly. The jest tests pass again with these
versions.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
cue commands now require a language version in module.cue; add it via
'cue mod fix'.

The genworkflows tasks generated inside the comprehension no longer
have their dependency on the repoRoot exec task tracked, failing with
a non-concrete stdout. Drop the indirection and write the files
relative to the working directory, which is always the repo root when
running cue cmd.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Replace the schemas vendored from schemastore.org under cue.mod/pkg
with the cue.dev/x/githubactions module from the Central Registry,
which CUE resolves and fetches automatically. This makes the
vendorgithubschema command and its CI step redundant.

Regenerating action.yml with CUE v0.17.1 also reorders some fields.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Use the latest actions/checkout and actions/setup-node with node 24,
matching the action's new runtime, and test against CUE v0.17.1, the
current latest release.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
The tests were disabled in CI when they broke with newer
dependencies; they pass again, so run them in the step that so far
only ran 'npm ci'.

Importing src/run.ts invoked run() as a side effect, so jest ran it
unmocked and core.setFailed marked the process as failed even with
all tests passing. Only invoke run() when executed as the entrypoint,
and rebuild dist.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
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