From 09e6a77ac200cb7c58233a9ef448913a5dfbe4a2 Mon Sep 17 00:00:00 2001 From: Jude Allred Date: Tue, 10 Oct 2023 14:43:32 -0400 Subject: [PATCH] further pre-push testing --- .config/husky/pre-push | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.config/husky/pre-push b/.config/husky/pre-push index df4b733..f5f375b 100755 --- a/.config/husky/pre-push +++ b/.config/husky/pre-push @@ -1,4 +1,17 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -cd apps/sim-core; yarn fmt-check +echo "************************************************************************" +echo "** Running sim-core's 'yarn fmt-check' **" +echo "************************************************************************" + +cd apps/sim-core +yarn fmt-check + +if [ $? -ne 0 ]; then + echo "************************************************************************" + echo "** Formatting failed; Run 'yarn fmt' and commit before pushing. **" + echo "************************************************************************" + + exit 1 +fi \ No newline at end of file