CI Exit Codes & Chaining Playground

The test ride before Mr. Wiryo’s bike goes back: how test.js ends (exit, exitCode, throw, SIGKILL) becomes one number, and the CI runner reads that number…

Why it matters

"Why did the deploy run when the test failed?" is nearly always about that number: a ; or a pipe that swallows it, an || echo that turns it into 0, a shell without -e or without pipefail. Reading exit codes makes a green CI trustworthy, and a 137 in the log reads at once as a killed process, not a failed test.

The key idea

0 succeeds, anything else fails, and a CI step reads one number

Common mistakes

Try it in this playground