Integrating Karate tests into GitHub workflows
In this part of the chapter, we will use the popular GitHub workflows to integrate Karate tests into a real build pipeline. We will do this both with and without Docker to see the differences.
Understanding GitHub workflows
If you do development or code reviews, chances are that you regularly use GitHub already. This Microsoft-owned Git-based code management platform is very popular among development teams. It offers pretty much all the required features that are needed within the software development life cycle.
Among many others, it includes version control, bug tracking, and – quite important for this chapter – CI and CD functionality. This is integrated into the platform by so-called GitHub actions that allow building such pipelines without third-party dependencies. These pipelines can be triggered manually or react to various events such as code commits, pull requests, branch creation, modification, deletion...