From 678a244e5c9130ef3239238611fff55cb07d1f4a Mon Sep 17 00:00:00 2001
From: quiqqer-stabilization-gitlab-repository-manager
 <server+quiqqer-stabilization-gitlab-repository-manager@pcsg.de>
Date: Thu, 12 Dec 2024 16:39:24 +0000
Subject: [PATCH] chore: setup CaptainHook for project tooling

---
 .phive/phars.xml |  1 +
 captainhook.json | 13 +++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 captainhook.json

diff --git a/.phive/phars.xml b/.phive/phars.xml
index 5950dfc..670318e 100644
--- a/.phive/phars.xml
+++ b/.phive/phars.xml
@@ -4,4 +4,5 @@
   <phar name="phpunit" version="^10.5.16" installed="10.5.16" location="./tools/phpunit" copy="false"/>
   <phar name="phpcs" version="^3.10.2" installed="3.10.2" location="./tools/phpcs" copy="false"/>
   <phar name="phpcbf" version="^3.10.2" installed="3.10.2" location="./tools/phpcbf" copy="false"/>
+  <phar name="captainhook" version="^5.23.3" installed="5.23.3" location="./tools/captainhook" copy="false"/>
 </phive>
diff --git a/captainhook.json b/captainhook.json
new file mode 100644
index 0000000..fb88b12
--- /dev/null
+++ b/captainhook.json
@@ -0,0 +1,13 @@
+{
+  "pre-commit": {
+    "enabled": true,
+    "actions": [
+      {
+        "action": "\\CaptainHook\\App\\Hook\\PHP\\Action\\Linting"
+      },
+      {
+        "action": "composer test"
+      }
+    ]
+  }
+}
\ No newline at end of file
-- 
GitLab