From 355ec402d1a195f74c96af9434ff791adc0824c5 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 18 Nov 2020 21:10:56 +0000 Subject: [PATCH] --- git-hooks.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 git-hooks.md diff --git a/git-hooks.md b/git-hooks.md new file mode 100644 index 0000000..ea7fd36 --- /dev/null +++ b/git-hooks.md @@ -0,0 +1,8 @@ +Put the following in `.git/modules/public/hooks/pre-commit`: + +```shell +#!/bin/sh + +tools/scripts/lint.py || exit 1 +dotnet test SharedTests/SharedTests.csproj || exit 1 +``` \ No newline at end of file