From d38e28a8a8ded477bbd6e8410fe066ea9dfd231d Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Thu, 26 Dec 2024 12:38:59 +0300 Subject: [PATCH] chore: add integrity test for --jobs option --- testdata/cli_run_only.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testdata/cli_run_only.txt 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