mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
78a4a6d0a6
Bump pnpm-lock / package.json / pnpm-workspace / lefthook.yml for the showcase-ops branch, add FRONTEND-STRATEGY / TESTING / QA-COVERAGE / INTEGRATION-CHECKLIST top-level showcase docs + aimock README, refresh showcase/.gitignore + showcase/shared/constraints.yaml.
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
output:
|
|
- meta
|
|
- summary
|
|
- success
|
|
- failure
|
|
- execution
|
|
- execution_out
|
|
- execution_info
|
|
- skips
|
|
|
|
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
check-binaries:
|
|
tags: binaries
|
|
run: bash scripts/hooks/check-binaries.sh
|
|
sync-lockfile:
|
|
tags: lockfile
|
|
glob: "**/package.json"
|
|
run: pnpm i --lockfile-only
|
|
stage_fixed: true
|
|
lint-fix:
|
|
tags: lint
|
|
# Scope oxlint and oxfmt to just the files staged for commit — running
|
|
# `--fix .` / `--write .` across the whole monorepo on every commit is
|
|
# both slow and blurs the hook's purpose (touch files that aren't part
|
|
# of this change). Guard against empty `{staged_files}` expansion: when
|
|
# a commit touches only non-matching files (markdown, YAML), lefthook
|
|
# still invokes this hook with an empty expansion, and oxlint/oxfmt
|
|
# would default to operating on the current directory, defeating the
|
|
# scoping entirely. stage_fixed re-stages whatever the hooks modify.
|
|
glob: "*.{js,jsx,ts,tsx,mjs,cjs}"
|
|
run: |
|
|
if [ -n "{staged_files}" ]; then
|
|
pnpm exec oxlint --fix {staged_files} && pnpm exec oxfmt --write {staged_files}
|
|
fi
|
|
stage_fixed: true
|
|
test-and-check-packages:
|
|
tags: test-packages
|
|
env:
|
|
NX_TUI: "false"
|
|
run: pnpm run test && pnpm run check:packages
|
|
|
|
commit-msg:
|
|
commands:
|
|
commitlint:
|
|
tags: commitlint
|
|
run: pnpm commitlint --edit {1}
|