We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d4ada9 commit ef6c17dCopy full SHA for ef6c17d
2 files changed
.githooks/pre-push
@@ -0,0 +1,12 @@
1
+#!/usr/bin/env bash
2
+# Prevent direct pushes to the 'main' branch to enforce PRs against upstream.
3
+
4
+# Run TDD tests via Docker (Codeception) before pushing any branch
5
+echo "Running PHPStan analysis..."
6
+docker compose exec -T php vendor/bin/phpstan analyse
7
+if [ $? -ne 0 ]; then
8
+ echo "🚨 PHPStan failed! Please fix errors before pushing."
9
+ exit 1
10
+fi
11
12
+exit 0
composer.json
@@ -119,6 +119,14 @@
119
]
120
}
121
},
122
+ "scripts": {
123
+ "post-install-cmd": [
124
+ "git config core.hooksPath .githooks || true"
125
+ ],
126
+ "post-update-cmd": [
127
128
+ ]
129
+ },
130
"repositories": [
131
{
132
"type": "composer",
0 commit comments