Run pre-commit hooks server side

This commit is contained in:
Ayaz Salikhov
2020-10-05 23:39:40 +03:00
parent c47a268cea
commit 025413bb2d
3 changed files with 5 additions and 3 deletions

View File

@@ -43,6 +43,8 @@ jobs:
make -C main dev-env lint-install make -C main dev-env lint-install
- name: Lint Dockerfiles - name: Lint Dockerfiles
run: make -C main lint-all run: make -C main lint-all
- name: Run pre-commit hooks
run: make -C main pre-commit-all
- name: Build Docker Images - name: Build Docker Images
run: make -C main build-test-all run: make -C main build-test-all
- name: Run Post-Build Hooks - name: Run Post-Build Hooks

View File

@@ -139,7 +139,7 @@ lint-install: ## install hadolint
@$(HADOLINT) --version @$(HADOLINT) --version
pre-commit-all: ## run pre-commit hook on all files pre-commit-all: ## run pre-commit hook on all files
@pre-commit run --all @pre-commit run --all-files
pre-commit-install: ## set up the git hook scripts pre-commit-install: ## set up the git hook scripts
@pre-commit --version @pre-commit --version