mirror of https://github.com/open-feature/cli.git
22 lines
630 B
YAML
22 lines
630 B
YAML
# This file configures Lefthook, a Git hooks manager, for the project.
|
|
# For detailed instructions on how to contribute and set up Lefthook,
|
|
# please refer to the relevant section in the contributing documentation (CONTRIBUTING.md).
|
|
pre-commit:
|
|
commands:
|
|
go-fmt:
|
|
run: go fmt ./...
|
|
stage_fixed: true
|
|
pre-push:
|
|
commands:
|
|
generate-docs:
|
|
run: |
|
|
make generate-docs
|
|
if ! git diff --quiet; then
|
|
echo "Documentation is outdated. Please run 'make generate-docs' and commit the changes."
|
|
exit 1
|
|
fi
|
|
skip: false
|
|
tests:
|
|
run: make test
|
|
skip: false
|