Graydon (creator of Rust and Monotone) has this excellent post discussing the importance of running tests on the code after merge, so the build stays green: https://graydon2.dreamwidth.org/1597.html
What you may not realise is that he advocates for an even stronger CI guarantee in the comments!
It's funny how markdown has won in so many tools for prose, but doc comments syntax is so varied.
Rust and Julia are largely markdown, Python is ReST plus doctest syntax, and Java even an HTML dialect!