Skip to content

feat(app-ci): uix-check: true runs the project's uix-check (One View's checks) as the first check - #40

Merged
igorlamos merged 1 commit into
mainfrom
claude/app-ci-uix-check
Nov 24, 2026
Merged

igorlamos merged 1 commit into
mainfrom
claude/app-ci-uix-check

Conversation

@beplus-agent-claude

Copy link
Copy Markdown
Contributor

What

@beplus/uix (0.66.0 and later) ships a uix-check bin. It runs One View's checks against the product profile (guidelines/uix.md) and a uix-ratchet.json that may only go down:

  • uix.view-on-uix
  • uix.view-definition
  • uix.filter-coverage
  • uix.filter-one-home
  • uix.single-copy

With uix-check: true, app-ci.yml runs it as the first check, the way a caller runs npm run check:i18n: counted, annotated on failure, and listed in the summary like every other check.

uses: beplus/setup-beplus/.github/workflows/app-ci.yml@v2
with:
  project: "@bepluscloud/console"
  pr-gate: true
  uix-check: true
  checks: |
    npm run check:i18n
    npm run typecheck

How it runs

  • It runs node_modules/.bin/uix-check --root "$GITHUB_WORKSPACE" in the working directory (the project's folder), so it uses the bin of the project's own @beplus/uix. --root is the repository root, where all three estates keep guidelines/uix.md and uix-ratchet.json.
  • It never uses npx. I tried npx --no-install uix-check locally without the bin: it went to the registry for a package named uix-check and hung, which in CI would stall the job until it times out. A project without the bin now fails the check at once, with an annotation naming the cause.
  • With pr-gate, a change under guidelines/ or to uix-ratchet.json also runs the checks. No Rush project holds those files, so the project's impact alone would miss a ratchet change.
  • Off by default, so no caller changes.

Tested

No workflow in this repository tests app-ci.yml, so this PR has no CI. I extracted the changed steps with yq and ran them locally:

  • with a passing bin, a failing bin and no bin;
  • the gate's paths with and without gate-paths;
  • with uix-check off, the steps behave as before.

test/pr-gate/run.sh still passes.

Releases as v2.22.0: #36's gate fix already shipped in v2.21.0.

…w's checks) as the first check

@beplus/uix (0.66.0 and later) ships a `uix-check` bin: the View checks
uix.view-on-uix, view-definition, filter-coverage, filter-one-home and
single-copy, against the product profile (guidelines/uix.md) and a
uix-ratchet.json that may only go down.

With `uix-check: true`, app-ci.yml puts it first in the checks, as a caller runs
`npm run check:i18n`: counted, annotated and in the summary like every other
check. It runs in the working directory, from the project's own
node_modules/.bin (never npx, which asks the registry when the bin is missing),
with --root at the repository. A project without the bin fails at once,
saying why. With pr-gate, guidelines/ and uix-ratchet.json run the checks too:
no Rush project holds them.

Off by default; no caller changes.

Co-Authored-By: Igor Lamos <igor@be.plus>
@igorlamos igorlamos self-assigned this Nov 24, 2026
@igorlamos
igorlamos merged commit 5b105b5 into main Nov 24, 2026
@beplus-agent-claude
beplus-agent-claude Bot deleted the claude/app-ci-uix-check branch November 25, 2026 19:20
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