From ea6e390c7b4d3336d66d88ef7d4fda69f8ea0cf6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 14 Mar 2024 10:27:36 +0300 Subject: [PATCH] [#68] pre-commit: Add unit test hook Signed-off-by: Evgenii Stratonikov --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e51210..35769c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,15 @@ repos: - id: end-of-file-fixer exclude: ".key$" + - repo: local + hooks: + - id: go-unit-tests + name: go unit tests + entry: make test GOFLAGS='' + pass_filenames: false + types: [go] + language: system + - repo: https://github.com/golangci/golangci-lint rev: v1.56.2 hooks: