From 1e61359a045c07fe6fdddc6a493ca849825bc671 Mon Sep 17 00:00:00 2001 From: Bruk Ori Date: Mon, 28 Oct 2024 21:48:12 +0300 Subject: [PATCH] test --- .../{pre-commit.yaml => verify-code.yaml} | 8 ++----- .pre-commit-config.yaml | 16 -------------- Makefile | 22 ------------------- help.mk | 11 ---------- 4 files changed, 2 insertions(+), 55 deletions(-) rename .forgejo/workflows/{pre-commit.yaml => verify-code.yaml} (52%) delete mode 100644 .pre-commit-config.yaml delete mode 100755 Makefile delete mode 100644 help.mk diff --git a/.forgejo/workflows/pre-commit.yaml b/.forgejo/workflows/verify-code.yaml similarity index 52% rename from .forgejo/workflows/pre-commit.yaml rename to .forgejo/workflows/verify-code.yaml index 8c412d6..b925acf 100644 --- a/.forgejo/workflows/pre-commit.yaml +++ b/.forgejo/workflows/verify-code.yaml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 85f292f..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -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 diff --git a/Makefile b/Makefile deleted file mode 100755 index 1ce2dd9..0000000 --- a/Makefile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/help.mk b/help.mk deleted file mode 100644 index a2ac989..0000000 --- a/help.mk +++ /dev/null @@ -1,11 +0,0 @@ -.PHONY: help - -# Show this help prompt -help: - @echo ' Usage:' - @echo '' - @echo ' make ' - @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