Skip to content

Commit

Permalink
chore: add integrity test for --jobs option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Dec 26, 2024
1 parent 1a9632a commit d38e28a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions testdata/cli_run_only.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
exec git init
exec git config user.email "[email protected]"
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

0 comments on commit d38e28a

Please sign in to comment.