Add lefthook for handling git hooks

This commit is contained in:
Deluan
2020-04-03 14:48:14 -04:00
parent 559848299c
commit 63bf49b3c4
2 changed files with 17 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
pre-push:
commands:
unit-tests:
tags: tests
run: go test ./...
pre-commit:
parallel: false
commands:
gofmt:
tags: style
glob: "*.go"
run: gofmt -w {staged_files}