Skip to content

Commit

Permalink
Not running push-hook tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi committed Oct 21, 2024
1 parent c32e147 commit b9ac7f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ fail () {
printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n"
}

[ "$CI" = true ] || export CI=false
if "$CI"; then
info 'Not running git pre-push hook tests on CI'
exit 0
fi

info 'Running tests before pushing'

xcrun swift test
Expand Down

0 comments on commit b9ac7f6

Please sign in to comment.