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 committed Sep 18, 2024
1 parent 2e46fee commit 39a2d6a
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 39a2d6a

Please sign in to comment.