mirror of
https://github.com/threeal/cmake-action.git
synced 2025-09-14 03:27:21 +00:00
21 lines
441 B
YAML
21 lines
441 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 --ignore-unknown {staged_files}
|
|
|
|
- name: fix lint
|
|
run: pnpm eslint --no-warn-ignored --fix {staged_files}
|
|
|
|
- name: build action
|
|
run: pnpm rollup -c
|
|
|
|
- name: check diff
|
|
run: git diff --exit-code dist {staged_files}
|