test #19
4 changed files with 2 additions and 55 deletions
|
@ -8,9 +8,5 @@ jobs:
|
||||||
container: git.frostfs.info/truecloudlab/env:openjdk-11-maven-3.8.6
|
container: git.frostfs.info/truecloudlab/env:openjdk-11-maven-3.8.6
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install deps
|
- name: Run the Maven verify phase
|
||||||
run: |
|
run: mvn --batch-mode --update-snapshots verify
|
||||||
apt update
|
|
||||||
apt install -y pre-commit
|
|
||||||
- name: Run pre-commit
|
|
||||||
run: pre-commit run --all-files --hook-stage manual --color=always
|
|
|
@ -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
|
|
22
Makefile
22
Makefile
|
@ -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
11
help.mk
|
@ -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
|
|
Loading…
Reference in a new issue