Files
ui/hanzo.yml
zeekay 6ab1c2af15 ci: one planner, parallel legs for both lanes, a gate that tests what changed
.github/actions/plan decides what a run tests. The publish lane releases
every public @hanzo/* whose version is ahead of npmjs and tests only
those; the gate tests the packages a change touched and every workspace
package that depends on them. Both run their legs through
.github/workflows/test.yml: one leg per 50 vitest files, at most eight,
on heavy runners for a split suite; leg 1 typechecks.

publish.yml keeps one package per leg and one publish job per package
in its own group, so a release waits only on its own suite. The gate is
superseded by a newer push and publish.yml is not, so on main the gate
leaves what the push releases to the publish run and waits for those
legs. Its one-leg packages share legs, six to a leg. The consumer suites
run as three jobs, and only when what @hanzo/ui packs, or a package it
builds on, changed. hanzoai/ci still runs the repository checks and the
ui.hanzo.ai site, with tests: 'false' after this run's jobs passed;
hanzo.yml drops its test: block, which one serial job ran for 30 to 40
minutes.
2026-10-26 03:29:15 -07:00

26 lines
1.2 KiB
YAML

# Canonical CI/CD config for hanzoai/ui, read by the hanzoai/ci reusable and
# platform.hanzo.ai.
#
# A library, not a container. Packages publish to npm from
# .github/workflows/publish.yml when a version is ahead of npmjs — the only
# thing here allowed to reach npmjs.
#
# NO `test:` BLOCK. The gate is .github/workflows/cicd.yml: it tests the
# packages a change touched and every package that depends on them, split
# across parallel legs (.github/workflows/test.yml, which publish.yml runs for
# what it releases), and the consumer suites only when what @hanzo/ui packs may
# have changed. One serial job cannot hold that inside five minutes: @hanzo/ui's
# 259 test files alone ran 657 s on six cores. cicd.yml calls the reusable with
# `tests: 'false'` once its own jobs passed, for the repository-wide checks and
# the site below.
# ui.hanzo.ai. Static documentation and interactive component catalog
# pre-rendered via One SSG in apps/ui.hanzo.ai. All 48 components and examples
# export to static HTML served directly by the ingress staticFiles middleware.
site:
slug: ui
dir: apps/ui.hanzo.ai/dist/client
on: [main]
build: pnpm --filter @hanzo/ui... build && pnpm --filter ui.hanzo.ai run build