From edd40474e89ad11aeb6c94b736555700764b00f8 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 14 Mar 2024 12:29:36 +0300 Subject: [PATCH] [#209] 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 c498fce..0c5b130 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,15 @@ repos: - id: end-of-file-fixer exclude: "(.key|.interp|.tokens)$" + - repo: local + hooks: + - id: go-unit-tests + name: go unit tests + entry: make test GOFLAGS='' + pass_filenames: false + types: [go] + language: system + - repo: local hooks: - id: make-lint