Pull request testing on Kubernetes

Imagine an organization with the following practices:

  • Commits code on GitHub
  • Runs its CI/CD pipelines with GitHub Actions
  • Runs its production workload on Kubernetes
  • Uses Google Cloud

A new engineer manager arrives and asks for the following:

On every PR, run integration tests in a Kubernetes cluster similar to the production one.

It sounds reasonable.

Engineering manager: I want #integrationtests to run on the app deployed on #Cloud infra for each #GitHub PR ✅ Me, thinking it's a no-brainer: sure thing! 🤦‍♂️ Me, after 85 runs: I have content for my next blog post/talk 😅

[image or embed]

— Nicolas Fränkel 🇺🇦🇬🇪 (@frankel.ch) December 20, 2024 at 10:52 AM

In this series of posts, I’ll show how you can do it.

  1. Testing locally and on GitHub workflows
  2. Working with GitHub Actions and GKE
Nicolas Fränkel

Nicolas Fränkel

Nicolas Fränkel is a technologist focusing on cloud-native technologies, DevOps, CI/CD pipelines, and system observability. His focus revolves around creating technical content, delivering talks, and engaging with developer communities to promote the adoption of modern software practices. With a strong background in software, he has worked extensively with the JVM, applying his expertise across various industries. In addition to his technical work, he is the author of several books and regularly shares insights through his blog and open-source contributions.

Read More
Pull request testing on Kubernetes
Share this