Configuring Continuous Integration tests
CI is a development practice where developers regularly merge their code to a source repository. To maintain the integrity of the source code, automated tests will often be run before each code change is accepted.
GitHub is one of the most widely used source code repository hosts. With GitHub, when you wish to merge a change into the main Git branch or repository, you open a pull request (PR). GitHub provides features for you to configure checks that should run on each PR. It’s common, and good practice, to require a PR to have a passing run of the application’s or module’s unit tests before it can be accepted.
There are many CI products that can enable the execution of your unit tests (GitHub Actions, Travis CI, and many others). Most of these programs come with a limited free tier for casual developers and paid commercial plans for businesses and enterprises.
In this recipe, we will learn how to configure GitHub...