fix: run all precommit targets via Makefile, exit with error at end if any fail
This commit is contained in:
parent
343c8ea339
commit
aa6f2ea647
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
|
@ -1,6 +1,12 @@
|
|||
.PHONY: precommit format test deps credo
|
||||
|
||||
precommit: format test deps credo
|
||||
precommit:
|
||||
@EXIT=0; \
|
||||
$(MAKE) format || EXIT=1; \
|
||||
$(MAKE) test || EXIT=1; \
|
||||
$(MAKE) deps || EXIT=1; \
|
||||
$(MAKE) credo || EXIT=1; \
|
||||
exit $$EXIT
|
||||
|
||||
format:
|
||||
MIX_ENV=test mix format --check-formatted
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue