ci: new CLI Scaffolding Validation workflow#673
Merged
joaoopereira merged 2 commits intoApr 7, 2026
Conversation
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow for CLI validation
feat: add PR scaffolding validation workflow against latest MES
Mar 12, 2026
Copilot
AI
changed the title
feat: add PR scaffolding validation workflow against latest MES
ci: simplify build-and-pack with a shared script and run scaffolding validation on all PRs
Mar 13, 2026
eefa9f8 to
2640cd2
Compare
ab31fdf to
e9a9952
Compare
Contributor
|
Introduces scaffolding validation workflow that builds CLI and performs basic scaffolding commands (new, build and pack) and gated on PRs targeting Changes:
Successful pipeline run: https://github.com/criticalmanufacturing/cli/actions/runs/24036048518/job/70095810206 |
e8c513b to
a1d65f7
Compare
joaoopereira
approved these changes
Apr 7, 2026
Rockdell
approved these changes
Apr 7, 2026
a1d65f7 to
b937ab2
Compare
Contributor
.NET Test Results |
Contributor
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.
NOTE: See comment below for final PR description.
The scaffolding validation workflow only built the Linux binary (missing win-x64/osx-x64), repeated build+pack steps per-platform inline, and gated on PRs targeting
mainonly.Changes
New
.github/scripts/build-and-pack.sh— single script with a for loop over all platforms (win-x64,linux-x64,osx-x64); accepts a mode argument:bundle→ outputs tonpm/dist/<platform>/(no zip, for npm packaging)prod(default) → outputs todist/<platform>/and createscmf-cli.<platform>.zipwith a directory existence check before zippingnpm-publish.yml— drops themontudor/action-zipstep and replacesnpm run build:prod+ 3 separate zip steps with a singlebash .github/scripts/build-and-pack.shpr-scaffolding-validation.yml:branches: - main— now triggers on all PRsnpm run build:bundle:linuxwithbash .github/scripts/build-and-pack.sh bundle, building all three platforms via the shared script📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.