Skip to content

Commit

Permalink
chore: add integrity test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jun 21, 2024
1 parent 741fe65 commit da95915
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions testdata/many_extends_levels.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
exec git init
exec lefthook dump
cmp stdout dump.yml
! stderr .

-- lefthook.yml --
extends:
- extends/e1.yml

pre-commit:
commands:
echo:
run: echo 0

-- extends/e1.yml --
extends:
- extends/e2.yml

pre-commit:
commands:
echo:
run: echo 1
skip: true

e1:
commands:
echo:
run: e1

-- extends/e2.yml --
extends:
- extends/e3.yml

pre-commit:
commands:
echo:
run: echo 2
tags: ["backend"]

e2:
commands:
echo:
run: e2

-- extends/e3.yml --
pre-commit:
commands:
echo:
glob: 3

e3:
commands:
echo:
run: e3

-- dump.yml --
e1:
commands:
echo:
run: e1
e2:
commands:
echo:
run: e2
e3:
commands:
echo:
run: e3
extends:
- extends/e3.yml
pre-commit:
commands:
echo:
run: echo 2
skip: true
tags:
- backend
glob: "3"

0 comments on commit da95915

Please sign in to comment.