Automated k6 load testing with Github Actions

This is an example repo for how to setup k6 with Github Actions to build load testing into an automation flow.

Examples:

File Description
.github/workflows/basic.yml Runs on ubuntu-latest using the marketplace action
.github/workflows/env-vars.yml Runs on ubuntu-latest, with env vars, using the marketplace action
.github/workflows/modules.yml Runs on ubuntu-latest, with js modules, using the marketplace action
.github/workflows/cloud.yml Runs in the k6 cloud, using the marketplace action
.github/workflows/macos.yml Runs on macOS, using k6 installed with hombrew
.github/workflows/windows.yml Runs on windows, using the downloaded k6 release binary
.github/workflows/docker.yml Runs on ubuntu-latest, in a docker container created from the official k6 docker image
.github/workflows/k6_extension.yml Runs on golang:1.17-alpine, an environment suitable for running k6 extensions
.github/workflows/local-service.yml Runs side by side with the system under test, Quickpizza
.github/workflows/browser.yml Runs browser tests
.github/workflows/run-with-glob.yml Runs multiple tests with glob pattern

More complex examples could be combined from the basic examples from the list above.

The full guide describing how to use this repository is located here.