mirror of
https://github.com/vacp2p/foundry-template.git
synced 2025-02-18 10:16:28 +00:00
chore(githooks): add pre-commit script for running adorno (lint+test+report)
This commit is contained in:
parent
2e46feeca3
commit
39a2d6a533
21
githooks/pre-commit-adorno
Normal file
21
githooks/pre-commit-adorno
Normal 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
|
Loading…
x
Reference in New Issue
Block a user