[#209] pre-commit: Add unit-test hook
DCO / DCO (pull_request) Successful in 1m27s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 1m36s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 2m5s Details
Tests and linters / Lint (pull_request) Successful in 3m13s Details

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/209/head
Evgenii Stratonikov 2024-03-14 12:29:36 +03:00
parent d9ec7c1988
commit edd40474e8
1 changed files with 9 additions and 0 deletions

View File

@ -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