Allow for caching tasks that fail, while still preserving their non-zero exit code #9336
john-privy
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
turbo test
twice and get cached output the second time when some tests fail.Non-goals
No response
Background
The best alternative I know of is to add
|| exit 0
to npm scripts that are being run, but it's useful to have the actual code (e.g. in CI) still propagated, so I don't think this is a good workaround.I couldn't find anything else on the subject.
Proposal
Add a global and/or task level configuration option to support caching tasks that fail.
Beta Was this translation helpful? Give feedback.
All reactions