cmake-action/lefthook.yaml
Alfi Maulana 71b294a9ef
test: rename lefthook.yml to lefthook.yaml
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2025-07-15 10:57:12 +07:00

38 lines
779 B
YAML

pre-commit:
piped: true
jobs:
- name: install dependencies
run: pnpm install
glob:
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- name: check types
run: pnpm tsc
glob:
- "*.ts"
- .npmrc
- pnpm-lock.yaml
- tsconfig.json
- name: fix formatting
run: pnpm prettier --write --ignore-unknown {staged_files}
- name: fix lint
run: pnpm eslint --no-warn-ignored --fix {staged_files}
- name: build action
run: pnpm rollup -c
glob:
- dist/*
- src/*.ts
- .npmrc
- pnpm-lock.yaml
- tsconfig.json
exclude:
- src/*.test.ts
- name: check diff
run: git diff --exit-code dist {staged_files}