mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-01-29 09:58:23 +08:00
chore: update master pre-push script
This commit is contained in:
parent
c24bf0fa80
commit
4034880d08
1 changed files with 3 additions and 3 deletions
|
@ -8,10 +8,10 @@ export NVM_DIR="$HOME/.nvm"
|
|||
|
||||
if [ $(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') = "master" ] && [ $(git remote get-url origin) = "https://github.com/monkeytypegame/monkeytype" ]; then
|
||||
nvm use
|
||||
echo "Running tests before pushing to master..."
|
||||
npm run test
|
||||
echo "Running a full check before pushing to master..."
|
||||
npm run full-check
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Tests failed, aborting push."
|
||||
echo "Full check failed, aborting push."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
Loading…
Reference in a new issue