feat(turborepo): --continue=dependencies-successful (#10023)
### Description
Context: https://github.com/vercel/turborepo/discussions/7461
Convert `--continue` into a tri-state option, introducing a new mode
that allows independent tasks to continue running when an error occurs
(dependent tasks will be canceled).
The possible values for `--continue` are now:
- `never` (default) -- on error: cancel all tasks
- `dependencies-successful` -- on error: continue running tasks whose
dependencies have succeeded
- `always` -- on error: continue running all tasks, even those whose
dependencies have failed
Setting `--continue` without a value is equivalent to setting it to
`always`
### Testing Instructions
See modified/added tests in the PR, but basically:
- `turbo run <cmd> --continue=never` (or omitting it) will abort when an
error occurs
- `turbo run <cmd> --continue=dependencies-successful` will cancel
dependent tasks when an error occurs, but keep running others
- `turbo run <cmd> --continue=always` (or `--continue`) will keep
running all other tasks when an error occurs
---------
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>
Co-authored-by: Anthony Shew <anthonyshew@gmail.com>