This sounds like what unit tests after every commit and e2e tests before every PR are supposed to solve.