Skip to content

ci: add self-consumption job (ubuntu + macos) - #4

Merged
akshat009 merged 1 commit into
mainfrom
ci/self-consumption-check
Aug 19, 2026
Merged

ci: add self-consumption job (ubuntu + macos)#4
akshat009 merged 1 commit into
mainfrom
ci/self-consumption-check

Conversation

@akshat009

Copy link
Copy Markdown
Owner

Adds a self-consumption CI job that packs the CLI, installs it globally (real bin, not node index.js), generates a real scaffold, and runs composer validate/install/lint/test + npm install/build against it on both ubuntu-latest and macos-latest.

This is the check that would have caught both P0s fixed in 1.0.2 pre-publish:

  • mixed CRLF/LF breaking composer lint (184 cascading errors)
  • the symlink main-guard silently no-op'ing on macOS/Linux (npm/npx symlinks the bin on those platforms; Windows uses a shim script, so this was invisible from a Windows dev machine)

No version bump -- .github/workflows/ isn't in package.json's files field, doesn't touch the published tarball.

…gressions
Both P0s fixed in 1.0.2 -- mixed CRLF/LF breaking `composer lint`, and the
symlink main-guard silently no-op'ing on macOS/Linux -- were invisible from
inside this repo. They only surfaced by actually installing the packed
tarball and running the real bin on the platforms that matter (Windows
never exercises the POSIX symlink install path, and `node index.js` never
exercises the bin-resolution path at all).
New `self-consumption` job, matrix [ubuntu-latest, macos-latest]:
1. npm pack + global install the tarball (real bin, not `node index.js`)
2. generate a real scaffold via the installed bin (all modules + React)
3. explicit check that the plugin file actually exists (fails loudly with
a pointer to isRunAsScript() if the symlink main-guard ever regresses,
instead of failing opaquely a few steps later)
4. composer validate --strict / install / lint / test against the output
5. npm install && npm run build for the React admin pipeline
No version bump -- .github/workflows/ isn't in package.json's "files"
field, so this never reaches the published tarball.
@akshat009
akshat009 merged commit eff8097 into mainAug 19, 2026
4 checks passed
@akshat009
akshat009 deleted the ci/self-consumption-check branch August 19, 2026 08:52
Sign up for freeto 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

@akshat009