Commit 025413bb authored by Ayaz Salikhov's avatar Ayaz Salikhov

Run pre-commit hooks server side

parent c47a268c
...@@ -43,6 +43,8 @@ jobs: ...@@ -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
......
...@@ -136,10 +136,10 @@ lint-install: ## install hadolint ...@@ -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)" @curl -sL -o $(HADOLINT) "https://github.com/hadolint/hadolint/releases/download/$(HADOLINT_VERSION)/hadolint-$(shell uname -s)-$(shell uname -m)"
@chmod 700 $(HADOLINT) @chmod 700 $(HADOLINT)
@echo "Installation done!" @echo "Installation done!"
@$(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
......
...@@ -75,4 +75,4 @@ $(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c( ...@@ -75,4 +75,4 @@ $(docker run --rm ${IMAGE_NAME} R --silent -e 'installed.packages(.Library)[, c(
\`\`\` \`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed) $(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\` \`\`\`
EOF EOF
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment