Skip to content

Commit 082ade8

Browse files
committed
Check for dirty git state after mock generation.
1 parent a1b4d2b commit 082ade8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Taskfile.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ tasks:
7070
- mocks.generate.testify
7171
- mocks.generate.matryer
7272

73+
git-state:
74+
desc: Check for a dirty git git-state
75+
cmds:
76+
- git diff --exit-code
77+
7378
docker:
7479
desc: build the mockery docker image
7580
cmds:
@@ -112,6 +117,7 @@ tasks:
112117
deps: [lint]
113118
cmds:
114119
- task: mocks
120+
- task: git-state
115121
- task: test
116122
- task: mocks.remove
117123
- task: test.e2e

0 commit comments

Comments
 (0)