Compare commits

...

2 Commits

Author SHA1 Message Date
IamTheFij d67a852ae8 Add test hooks with try-repo
continuous-integration/drone/push Build is passing Details
2023-10-26 14:56:42 -07:00
IamTheFij 6cf8fe749d Use personal drone-pre-commit image that has docker-compose binary installed
continuous-integration/drone/push Build is passing Details
2023-10-26 14:53:53 -07:00
2 changed files with 6 additions and 3 deletions

View File

@ -9,9 +9,8 @@ workspace:
steps:
- name: test
image: iamthefij/drone-pre-commit:latest
image: iamthefij/drone-pre-commit@sha256:6ed8dae6b0067bd2e145e36421bcfbbc68975ff7ddaa5a3f285b5bcdaf0989c8
commands:
- pip install docker-compose
- make all
- name: notify

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: