mirror of
https://github.com/threeal/cmake-action.git
synced 2025-07-28 16:44:21 +00:00
test: remove glob pattern for filtering Lefthook jobs (#776)
Some checks are pending
Build / Build Action (push) Waiting to run
Test / Test Action (macos-14) (push) Waiting to run
Test / Test Action (ubuntu-24.04) (push) Waiting to run
Test / Test Action (windows-2022) (push) Waiting to run
Test / Test Action With Specified Directories (push) Waiting to run
Test / Test Action Without Run Build (push) Waiting to run
Test / Test Action With Additional Options (push) Waiting to run
Test / Test Action With Custom Generator (push) Waiting to run
Some checks are pending
Build / Build Action (push) Waiting to run
Test / Test Action (macos-14) (push) Waiting to run
Test / Test Action (ubuntu-24.04) (push) Waiting to run
Test / Test Action (windows-2022) (push) Waiting to run
Test / Test Action With Specified Directories (push) Waiting to run
Test / Test Action Without Run Build (push) Waiting to run
Test / Test Action With Additional Options (push) Waiting to run
Test / Test Action With Custom Generator (push) Waiting to run
* test: remove job globs in `lefthook.yaml` config Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * test: modify Lefthook jobs to process all files Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * test: check diff of `pnpm-lock.yaml` in Lefthook Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> --------- Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
parent
b8809b9ead
commit
86320b3bea
@ -3,35 +3,18 @@ pre-commit:
|
||||
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}
|
||||
run: pnpm prettier --write .
|
||||
|
||||
- name: fix lint
|
||||
run: pnpm eslint --no-warn-ignored --fix {staged_files}
|
||||
run: pnpm eslint --fix
|
||||
|
||||
- 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}
|
||||
run: git diff --exit-code dist pnpm-lock.yaml {staged_files}
|
||||
|
Loading…
Reference in New Issue
Block a user