chore: wire tests into check.sh and document test suites
This commit is contained in:
@@ -98,6 +98,24 @@ if need shellcheck shellcheck; then
|
||||
fi
|
||||
fi
|
||||
|
||||
step "Tests unitaires PHP (tests/php/)"
|
||||
if need php php-cli; then
|
||||
if php tests/php/run.php; then
|
||||
echo "✅ Tests PHP OK"
|
||||
else
|
||||
fail=1
|
||||
fi
|
||||
fi
|
||||
|
||||
step "Tests unitaires JS (tests/js/)"
|
||||
if need node nodejs; then
|
||||
if node tests/js/run.js; then
|
||||
echo "✅ Tests JS OK"
|
||||
else
|
||||
fail=1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
if [ "$fail" -ne 0 ]; then
|
||||
echo "❌ Des vérifications ont échoué — corrigez avant de pousser."
|
||||
|
||||
Reference in New Issue
Block a user