How to add performance testing to CI/CD pipelines using k6 and GitHub Actions

Continuous testing means verifying and improving software quality at all stages, including development. It can sound like something only large companies do, but it’s an approach I use even for this personal blog that you’re reading this on.

Every new blog post or change I make to this site automatically triggers the execution of a small test. This test, when run over time, lets me see whether changes I’ve made have been detrimental to site performance. Here’s a video on my setup: