My problem is quiet simple:
I'm using Husky to deal with git hooks
I have configured a prepush hooks that run 2 scripts:
"prepush": "npm-run-all --parallel lint test"
It's working correctly on single push
But when I try to push to 2 branches or more, it's not detecting failing scripts.
For an example, let say that I created 2 branches:
feature/branch-1
feature/branch-2
- branch-1 contains a lint issue, branch-2 is clean (no test failing / no lint issue)
- I checkout to branch-2 and push both branches (using SourceTree in my case).
The husky prePush script is called but the lint script does not fail (Haven if it fail when I'm pushing only that branch).
I'm using Husky 0.14.3