chore(githooks): add pre-commit script for running adorno (lint+test+report)

This commit is contained in:
Ricardo Guilherme Schmidt 2024-09-18 12:05:29 -03:00 committed by r4bbit
parent 68334db0be
commit b2f841158b
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/bin/bash
foundryup
if [ $? -ne 0 ]; then
echo "foundryup failed."
exit 1
fi
pnpm run adorno
if [ $? -ne 0 ]; then
echo "pnpm run adorno failed."
exit 1
fi
git add .
echo "Successfully ran pnpm run adorno and added modified files."
exit 0