Add test hooks with try-repo
continuous-integration/drone/push Build is passing Details

This commit is contained in:
IamTheFij 2023-10-26 14:56:42 -07:00
parent 6cf8fe749d
commit d67a852ae8
1 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
all: check test
test: test-negative test-positive
test: test-negative test-positive test-hooks
.PHONY: test-positive
test-positive:
@ -16,6 +16,10 @@ test-negative:
@echo "Check multiple files. Should error."
./compose-check.sh tests/docker-compose* && { echo 'fail'; exit 1; } || echo 'ok'
.PHONY: test-hooks
test-hooks:
pre-commit try-repo . --all-files
# Installs pre-commit hooks
.PHONY: install-hooks
install-hooks: