[#209] pre-commit: Add unit-test hook

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-03-14 12:29:36 +03:00
parent d9ec7c1988
commit edd40474e8

View file

@ -18,6 +18,15 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
exclude: "(.key|.interp|.tokens)$" 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 - repo: local
hooks: hooks:
- id: make-lint - id: make-lint