Repository navigation
ci: run script tests only when release scripts change - #96
Merged
Merged
Conversation
Move the Node script tests out of ci.yml into scripts.yml, triggered only by scripts/*.mjs, tools/**, package manifests, Cargo.lock and the engine tag file, so pure Rust changes no longer start the Windows script job. The snap-core boundary and embedded-resource check reads Rust sources, so it now runs once in the Linux native job. Script-only changes skip the three-platform Rust build in ci.yml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changed
scripts.yml: theScript checks and testsjob (Windows,npm test) moves out ofci.ymland runs only when these change:scripts/*.mjs,scripts/ci/translation-engine.json,tools/**,package.json,package-lock.json,Cargo.lock, or the workflow itself.tools/**andCargo.lockare in the list because the release-signing test callscargo run -p snap-release-sign.ci.ymlnode scripts/check-architecture.mjs(snap-core boundary + embedded resources) now runs first in the native job, on Linux only. It reads Rust sources and needs no compile.paths-ignoreaddsscripts/*.mjs,package.jsonandpackage-lock.json, so script-only changes skip the three-platform Rust build. Those changes are covered byscripts.yml, whosenpm testalso runs the architecture check.Why
Pure Rust PRs no longer spin up a Windows runner for script tests. Script-only PRs no longer compile Rust on three platforms.
Notes for reviewers
release.ymlstill runs the fullnpm test.chore(release):skip condition is kept as-is in the new workflow.check-architecturepasses,npm testpasses 30/30, and both workflows parse. Because this PR touchesci.ymlandscripts.yml, both workflows run on it.🤖 Generated with Claude Code