Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grafana/k6-example-github-actions
https://github.com/grafana/k6-example-github-actions
actions continuous-integration examples load-testing performance-testing
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grafana/k6-example-github-actions
- Owner: grafana
- Created: 2019-12-06T16:32:08.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T07:41:48.000Z (about 1 year ago)
- Last Synced: 2024-04-13T06:54:46.360Z (8 months ago)
- Topics: actions, continuous-integration, examples, load-testing, performance-testing
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 32
- Watchers: 125
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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](.github/workflows/basic.yml) | Runs on ubuntu-latest using the marketplace action |
| [.github/workflows/env-vars.yml](.github/workflows/env-vars.yml) | Runs on ubuntu-latest, with env vars, using the marketplace action |
| [.github/workflows/modules.yml](.github/workflows/modules.yml) | Runs on ubuntu-latest, with js modules, using the marketplace action |
| [.github/workflows/cloud.yml](.github/workflows/cloud.yml) | Runs in the k6 cloud, using the marketplace action |
| [.github/workflows/macos.yml](.github/workflows/macos.yml) | Runs on macOS, using k6 installed with hombrew |
| [.github/workflows/windows.yml](.github/workflows/windows.yml) | Runs on windows, using the downloaded k6 release binary |
| [.github/workflows/docker.yml](.github/workflows/docker.yml) | Runs on ubuntu-latest, in a docker container created from the official k6 docker image |
| [.github/workflows/k6_extension.yml](.github/workflows/k6_extension.yml) | Runs on golang:1.17-alpine, an environment suitable for running k6 extensions |
| [.github/workflows/local-service.yml](.github/workflows/local-service.yml) | Runs side by side with the system under test, Quickpizza |
| [.github/workflows/browser.yml](.github/workflows/browser.yml) | Runs browser tests |
| [.github/workflows/run-with-glob.yml](.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](https://blog.loadimpact.com/load-testing-using-github-actions).