diff --git a/testdata/cli_run_only.txt b/testdata/cli_run_only.txt new file mode 100644 index 00000000..4226df53 --- /dev/null +++ b/testdata/cli_run_only.txt @@ -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