Skip to content

Commit 4d9efaf

Browse files
committed
added runner
1 parent b5fff6a commit 4d9efaf

File tree

1 file changed

+10
-0
lines changed
  • bin/git-hooks/pre-commit.d

1 file changed

+10
-0
lines changed

bin/git-hooks/pre-commit.d/runner

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
echo "Running Pint ... "
4+
files=$(git diff --cached --name-only --diff-filter=ACM -- '*.php');
5+
./vendor/bin/pint $files
6+
7+
git add $files
8+
9+
echo "Running Pest ..."
10+
./vendor/bin/pest

0 commit comments

Comments
 (0)