mirror of
https://github.com/threeal/cmake-action.git
synced 2025-07-03 13:41:21 +00:00
Some checks failed
Build / Build Action (push) Has been cancelled
Test / Test Action (macos-14) (push) Has been cancelled
Test / Test Action (ubuntu-24.04) (push) Has been cancelled
Test / Test Action (windows-2022) (push) Has been cancelled
Test / Test Action With Specified Directories (push) Has been cancelled
Test / Test Action Without Run Build (push) Has been cancelled
Test / Test Action With Additional Options (push) Has been cancelled
Test / Test Action With Custom Generator (push) Has been cancelled
* style: ignore `dist` and `README.md` in `.prettierignore` Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * test: integrate Lefthook Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * build: remove `build`, `format`, and `lint` scripts Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> --------- Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
40 lines
829 B
YAML
40 lines
829 B
YAML
pre-commit:
|
|
piped: true
|
|
jobs:
|
|
- name: install dependencies
|
|
run: pnpm install
|
|
glob:
|
|
- package.json
|
|
- pnpm-lock.yaml
|
|
- pnpm-workspace.yaml
|
|
|
|
- name: fix formatting
|
|
run: pnpm prettier --write --ignore-unknown {staged_files}
|
|
|
|
- name: fix lint
|
|
run: pnpm eslint --no-warn-ignored --fix {staged_files}
|
|
|
|
- name: check types
|
|
run: pnpm tsc --noEmit
|
|
glob:
|
|
- src/*.ts
|
|
- .npmrc
|
|
- pnpm-lock.yaml
|
|
- tsconfig.json
|
|
exclude:
|
|
- src/*.test.ts
|
|
|
|
- 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}
|