We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38a45f6 commit 4309338Copy full SHA for 4309338
.husky/pre-push
@@ -1,2 +1,10 @@
1
#!/bin/sh
2
-# yarn test
+[ -n "$CI" ] && exit 0
3
+
4
+echo "Running build and tests..."
5
+yarn test && yarn build
6
7
+if [ $? -ne 0 ]; then
8
+ echo "Build or tests failed. Please fix errors before pushing."
9
+ exit 1
10
+fi
.husky/prepare-commit-msg
@@ -8,16 +8,4 @@ if [ -n "$2" ]; then
exit 0
fi
11
-echo "Running linter..."
12
-yarn lint
13
-
14
-# Check linter exit status
15
-if [ $? -ne 0 ]; then
16
- echo "Linting failed. Please fix lint errors before committing."
17
- exit 1
18
-else
19
- echo "Adding linted files to staging..."
20
- git add .
21
-fi
22
23
exec < /dev/tty && git cz --hook || true
0 commit comments