cmake-action/lefthook.yaml
Alfi Maulana bf3603a637
test: check diff of pnpm-lock.yaml in Lefthook
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2025-07-26 21:09:19 +07:00

21 lines
393 B
YAML

pre-commit:
piped: true
jobs:
- name: install dependencies
run: pnpm install
- name: check types
run: pnpm tsc
- name: fix formatting
run: pnpm prettier --write .
- name: fix lint
run: pnpm eslint --fix
- name: build action
run: pnpm rollup -c
- name: check diff
run: git diff --exit-code dist pnpm-lock.yaml {staged_files}