I have been practising test-driven development (TDD) for quite some time on projects where I was working alone or my own side projects. But when it comes to working with a team, you come up with new and very interesting challenges. I wanted to ensure that everyone runs PHPUnit before they commit code and yes there are chances even I can forget to check. Human errors are possible, right? What if the developer forgot to run the unit test? Well, that's where Continuous Integration (CI) comes into picture.
The idea is simple, when a developer commits a code and push to the repository; the unit tests are executed. And, if we have any issue, the develper will be notified about the same. So, in this blog post, I will show you how I implemented Gitlab pipelines to implement Continuous Integration.