2020-04-03 20:48:14 +02:00
|
|
|
pre-push:
|
2020-05-07 18:00:10 +02:00
|
|
|
parallel: true
|
2020-04-03 20:48:14 +02:00
|
|
|
commands:
|
|
|
|
unit-tests:
|
|
|
|
tags: tests
|
|
|
|
run: go test ./...
|
2020-05-07 17:57:07 +02:00
|
|
|
lint:
|
|
|
|
tags: tests
|
|
|
|
run: golangci-lint run
|
2020-04-03 20:48:14 +02:00
|
|
|
|
|
|
|
pre-commit:
|
|
|
|
parallel: false
|
|
|
|
commands:
|
|
|
|
gofmt:
|
|
|
|
tags: style
|
|
|
|
glob: "*.go"
|
2020-04-08 19:23:39 +02:00
|
|
|
run: gofmt -w {staged_files}; git add {staged_files}
|