Integrating with GitHub Actions
Explore how to set up GitHub Actions to automate Jest test execution and enforce coverage thresholds. Understand how to create YAML workflows that run tests on pull requests to maintain code quality and prevent merging failing code.
We'll cover the following...
What is GitHub Actions?
GitHub Actions is a tool offered by GitHub that automates software workflows for us. Using YAML files, we can create rules around merging pull requests to the main branch, run workflows after a merge is complete, and even deploy our applications. For instance, we may want to ensure that our code can still successfully build with the new code in a pull request. We can enforce this with GitHub Actions, blocking the merge of a pull request by building our system, and blocking the merge if it fails.
How can we use testing coverage inside GitHub Actions?
Tests prove to us that even as we add features to and iterate ...