mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2025-01-04 19:47:33 +00:00
parent
f261ba1939
commit
4109dcabcd
17
.pre-commit-config.yaml
Normal file
17
.pre-commit-config.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.0.1
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||
rev: v0.7.1.1
|
||||
hooks:
|
||||
- id: shellcheck
|
||||
- repo: https://github.com/IamTheFij/docker-pre-commit
|
||||
rev: v2.0.0
|
||||
hooks:
|
||||
- id: docker-compose-check
|
||||
- id: hadolint
|
11
Makefile
11
Makefile
@ -4,10 +4,17 @@
|
||||
default: test
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
test: check
|
||||
docker-compose -f ./tests/docker-compose-private.yml up \
|
||||
--build --force-recreate \
|
||||
--abort-on-container-exit --exit-code-from plugin
|
||||
docker-compose -f ./tests/docker-compose-public.yml up \
|
||||
--build --force-recreate \
|
||||
--abort-on-container-exit --exit-code-from plugin
|
||||
|
||||
.PHONY: install-hooks
|
||||
install-hooks:
|
||||
pre-commit install
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
pre-commit run --all-files
|
||||
|
Loading…
Reference in New Issue
Block a user