chore: add test runner to pre-commit hook with failure-only output
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m58s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m58s
This commit is contained in:
@@ -13,6 +13,13 @@ if [ -n "$STAGED_FILES" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Run tests — only failing tests are printed to keep output focused
|
||||
echo "🧪 Running tests..."
|
||||
bash .husky/scripts/run-tests.sh
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Generate project structure
|
||||
echo "🗺️ Updating project structure..."
|
||||
node .husky/scripts/generate-project-tree.js
|
||||
|
||||
Reference in New Issue
Block a user