pre-commit added for use with git hook

This commit is contained in:
onyx-and-iris 2022-06-25 01:05:56 +01:00
parent e868bf2ef0
commit ef4fefacc1

9
tests/pre-commit.ps1 Normal file
View File

@ -0,0 +1,9 @@
Function RunTests {
$run_tests = "go clean -testcache; go test ../..."
Invoke-Expression $run_tests
}
if ($MyInvocation.InvocationName -ne ".") {
RunTests
}