Add pre-commit hook to verify DB
All checks were successful
CI/CD Pipeline / test (push) Successful in 3s
CI/CD Pipeline / deploy (push) Successful in 19s

This commit is contained in:
2026-02-10 18:46:43 +01:00
parent bf278667bc
commit c67a3ec6d0

5
scripts/hooks/pre-commit Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
# Fail fast if the database is unreachable.
php artisan version:fetch >/dev/null