diff options
Diffstat (limited to 'hooks')
| -rwxr-xr-x | hooks/pre-commit | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit index 422b855..8336947 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -4,5 +4,13 @@ if [ $(git rev-parse --abbrev-ref HEAD) != "main" ]; then exit 0 fi +cd $(git rev-parse --show-toplevel) + +echo "Building docs" +make -C docs txt +make -C docs html + echo "Running tests before commit to main" -go test ./...
\ No newline at end of file +go test ./... + +cd -
\ No newline at end of file |
