diff --git a/core/.githooks/pre-push b/core/.githooks/pre-push index b340af6..ced5865 100644 --- a/core/.githooks/pre-push +++ b/core/.githooks/pre-push @@ -8,7 +8,7 @@ NOCOLOR='\033[0m' # Run tests before push echo -e "\n${CYAN}Running tests...${NOCOLOR}" -go test ./... # Runs all tests in your repo +cd "$(git rev-parse --show-toplevel)/core" && go test ./... status=$? if [ $status -ne 0 ]; then echo -e "${RED}Push aborted: some tests failed.${NOCOLOR}"