Skip to content

Commit

Permalink
chore(githooks): add pre-commit script for running adorno (lint+test+…
Browse files Browse the repository at this point in the history
…report)
  • Loading branch information
3esmit authored and 0x-r4bbit committed Sep 18, 2024
1 parent 68334db commit b2f8411
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions githooks/pre-commit-adorno
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b2f8411

Please sign in to comment.