From the course: Software Testing Assistance with GitHub Copilot AI

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Running tests in CI/CD

Running tests in CI/CD

- [Instructor] Automated tests are great. I hope at this point you're interested in including them in your project. But they only work if they are run regularly, and that's where CI/CD comes in. If you aren't familiar, CI/CD, continuous integration and continuous delivery, is a dev practice that enables shipping small changes quickly to production. There are many courses and videos about CI/CD here on LinkedIn Learning. Now part of using CI/CD requires shipping bug-free code. Wait, stop laughing. I know that's not actually a thing, but there is an entire class of bugs we can avoid with automated testing, that is, new regressions. I'm going to focus on GitHub Actions but only for syntax. There are many CI/CD providers. Here's an overview of how an action works. You define a workflow, which I see in the YAML file. It contains jobs which have steps, and they're triggered on an event. In this example, the event is push, but it could be a PR or many other things. So I'm going to my code…

Contents