Skip to content

Commit

Permalink
chore: add a testscript
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Mar 7, 2024
1 parent c96d362 commit 64257bd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions testdata/skip_run.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
exec git init
exec git add -A
exec lefthook run skip
! stdout 'Ha-ha!'
exec lefthook run no-skip
stdout 'Ha-ha!'

-- lefthook.yml --
skip_output:
- skips
- meta
- summary
- execution_info
skip:
skip:
- run: test 1 -eq 1
commands:
echo:
run: echo 'Ha-ha!'

no-skip:
skip:
- run: "[ 1 -eq 0 ]"
commands:
echo:
run: echo 'Ha-ha!'

0 comments on commit 64257bd

Please sign in to comment.