From c2e8689a0071c20374ad418aa538c5996f3a89ab Mon Sep 17 00:00:00 2001 From: Daniel Burger <48986191+danielburger1337@users.noreply.github.com> Date: Tue, 5 Mar 2024 11:56:57 +0100 Subject: [PATCH] Add precommit.sh script --- precommit.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 precommit.sh diff --git a/precommit.sh b/precommit.sh new file mode 100755 index 0000000..2c84d2c --- /dev/null +++ b/precommit.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +vendor/bin/php-cs-fixer fix + +if ! vendor/bin/phpstan --memory-limit=512M; then + exit 1; +fi + +vendor/bin/phpunit --coverage-text --path-coverage