chore(githooks): add pre-commit script for running adorno (lint+test+report)
This commit is contained in:
parent
68334db0be
commit
b2f841158b
|
@ -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
|
Loading…
Reference in New Issue