You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Enovade DevOps Symphony K6.io GitHub Action
v0.0.3
Pre-release
This repository contains automated performance and stress tests using K6, integrated via GitHub Actions. Post-test, an AI-driven system generates insightful reports to analyze the performance metrics.
We use K6 for scripting performance and stress tests. Tests are automatically triggered via GitHub Actions upon specific events, such as pushing to main or creating a pull request. After tests are executed, our custom AI module analyzes the results and generates a comprehensive report on key performance metrics.
- A GitHub account
- Basic understanding of YAML (for editing GitHub Actions workflows)
- Familiarity with JavaScript (for K6 test scripts)
- Fork this repository: Click the 'Fork' button on the top right of this page.
- Clone your forked repository:
git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY_NAME.git
- Navigate into the repository directory:
cd YOUR_REPOSITORY_NAME
- Set up K6: Ensure K6 is installed on your local machine for test script development. Installation instructions can be found here.
- GitHub Secrets: Set up the necessary secrets in your GitHub repository:
K6_CLOUD_TOKEN
: Your K6 Cloud API token for storing results and generating reports.
You can add or modify K6 scripts in the tests/
directory. Here’s a simple example of a K6 test script:
import http from 'k6/http';
import { sleep } from 'k6';
export default function () {
http.get('https://testapi.io/api/myapi');
sleep(1);
}