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
- name: Lint Dockerfiles
run: make -C main lint-all
- name: Run pre-commit hooks
run: make -C main pre-commit-all
- name: Build Docker Images
run: make -C main build-test-all
- name: Run Post-Build Hooks

View File

@@ -136,10 +136,10 @@ lint-install: ## install hadolint
@curl -sL -o $(HADOLINT) "https://github.com/hadolint/hadolint/releases/download/$(HADOLINT_VERSION)/hadolint-$(shell uname -s)-$(shell uname -m)"
@chmod 700 $(HADOLINT)
@echo "Installation done!"
@$(HADOLINT) --version
@$(HADOLINT) --version
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 --version

View File

@@ -75,4 +75,4 @@ $(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c(
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
EOF