From ef4fefacc1f1b9842e57c75830a496ff1b7b0ad7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sat, 25 Jun 2022 01:05:56 +0100 Subject: [PATCH] pre-commit added for use with git hook --- tests/pre-commit.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pre-commit.ps1 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 +}