Do not run frontend tests upon git hooks (#1614)
* test * tst * front changes * Changes pre-commit * Changes pre-commit * Changes pre-commit * non fe change * fe change * Removes unnecessary variable * Remvoes console.log * Removes newline * Remove formating by VSCode plugin
This commit is contained in:
parent
f084dc36a1
commit
c3d44c95c2
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
|
||||||
|
if git diff --cached --name-only | grep --quiet "kafka-ui-react-app"
|
||||||
|
then
|
||||||
cd kafka-ui-react-app && npm run pre-commit
|
cd kafka-ui-react-app && npm run pre-commit
|
||||||
|
else
|
||||||
|
echo "Skipping frontend tests"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue