-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ability to specify job names for command run (#904)
* feat: add ability to specify job names to run command * fix: allow running whole groups * chore: add integrity test for --jobs option
- Loading branch information
Showing
5 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
exec git init | ||
exec git config user.email "you@example.com" | ||
exec git config user.name "Your Name" | ||
exec git add -A | ||
exec lefthook install | ||
exec lefthook run hook --jobs a --jobs c --jobs db --commands lint | ||
stdout '\s*a\s*ca\s*cb\s*db\s*lint\s*' | ||
|
||
-- lefthook.yml -- | ||
output: | ||
- execution_out | ||
hook: | ||
jobs: | ||
- name: a | ||
run: echo a | ||
- name: b | ||
run: echo b | ||
- name: c | ||
group: | ||
jobs: | ||
- run: echo ca | ||
- run: echo cb | ||
- name: d | ||
group: | ||
jobs: | ||
- name: da | ||
run: echo da | ||
- name: db | ||
run: echo db | ||
commands: | ||
lint: | ||
run: echo lint | ||
test: | ||
run: echo test |