Skip to content

Commit fed97a0

Browse files
committed
🔨 Add a hook to check unit test before a push #10
1 parent d1af75b commit fed97a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Plugin/buildtools/Hook/pre-push

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
# Check that unit test have passed
3+
4+
ps_script="Plugin\\buildtools\\runUnitTest.ps1"
5+
6+
if [ -f "$ps_script" ]; then
7+
exec powershell.exe -ExecutionPolicy RemoteSigned -File "$ps_script"
8+
exit
9+
else
10+
echo "No powershell script has been found at $ps_script we won't check comment and allow to push."
11+
exit 0
12+
fi

0 commit comments

Comments
 (0)