Files
app/hanzo.yml
zeekay 57af552480 The repository is a workspace: @hanzo/app moves to pkg/app
@hanzo/mod joins it beside the app (HIP-0528 §10), so the package that
was the repository's root is one directory of it. Commands run over every
package from the root; publish.yml publishes each package whose version
npm does not serve, the contract before the app. Nothing a host imports
changes.
2026-10-22 19:44:55 -07:00

19 lines
639 B
YAML

# Hanzo CI/CD. Packages, not images: the gate is each package's typecheck, design
# lint, tests and build, and npm is where they ship (.github/workflows/publish.yml).
test:
- name: build
run: |
set -e
corepack enable
pnpm install --frozen-lockfile
pnpm typecheck
pnpm lint:design
pnpm test
pnpm build
# Each package's root loads in plain Node, as publish.yml checks before it ships.
for dir in pkg/*/; do
test -s "${dir}dist/index.js"
test -s "${dir}dist/index.d.ts"
(cd "$dir" && node --input-type=module -e "await import('./dist/index.js')")
done