diff --git a/tests/pre-commit.ps1 b/tests/pre-commit.ps1 new file mode 100644 index 0000000..b1500d5 --- /dev/null +++ b/tests/pre-commit.ps1 @@ -0,0 +1,9 @@ +Function RunTests { + $run_tests = "go clean -testcache; go test ../..." + + Invoke-Expression $run_tests +} + +if ($MyInvocation.InvocationName -ne ".") { + RunTests +}