test #19

Closed
orikik wants to merge 8 commits from orikik:test into master
4 changed files with 2 additions and 55 deletions
Showing only changes of commit 1e61359a04 - Show all commits

View file

@ -8,9 +8,5 @@ jobs:
container: git.frostfs.info/truecloudlab/env:openjdk-11-maven-3.8.6
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
apt update
apt install -y pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --hook-stage manual --color=always
- name: Run the Maven verify phase
run: mvn --batch-mode --update-snapshots verify

View file

@ -1,16 +0,0 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-json
- id: check-xml
- id: check-yaml
- repo: local
hooks:
- id: make-verify
name: Run make verify
entry: make verify
language: system
pass_filenames: false

View file

@ -1,22 +0,0 @@
#!/usr/bin/make -f
SHELL=bash
include help.mk
.PHONY: verify
# Regenerate documentation for proto files:
verify:
mvn clean verify
# Activate pre-commit hooks
pre-commit:
pre-commit install --hook-type pre-commit
# Deactivate pre-commit hooks
unpre-commit:
pre-commit uninstall --hook-type pre-commit
# Run pre-commit hooks
pre-commit-run:
@pre-commit run --all-files --hook-stage manual

11
help.mk
View file

@ -1,11 +0,0 @@
.PHONY: help
# Show this help prompt
help:
@echo ' Usage:'
@echo ''
@echo ' make <target>'
@echo ''
@echo ' Targets:'
@echo ''
@awk '/^#/{ comment = substr($$0,3) } /^[a-zA-Z][a-zA-Z0-9_-]+:/{ print " ", $$1, comment; comment = "" }' $(MAKEFILE_LIST) | column -t -s ':' | grep -v 'IGNORE' | sort | uniq