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
parent 2e46feeca3
commit 39a2d6a533
No known key found for this signature in database
GPG Key ID: 54B4454CC123AD17
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