Run BlazeMeter Tests from GitHub Actions

To integrate performance testing into your development workflow, you can use GitHub Actions to create and run BlazeMeter load tests. GitHub Actions is an automation platform for continuous integration and continuous delivery (CI/CD) that lets you define workflows that trigger actions in response to events, such as code pushes, pull requests, or issue creation.

In this integration, GitHub Actions jobs are executed within Docker containers using the GitHub Actions framework. Use the BlazeMeter Docker image to create tests, run existing tests, update the test files of existing tests, and many more.

Github Actions rely on an action.yml file. For the full list of BlazeMeter-related functions performed by the Docker image, see Github Actions and BlazeMeter-related Functions.

Configure GitHub Actions

This section explains the steps required for generating a basic job within GitHub Actions.

  1. Log in to your GitHub account.

  2. Create a new repository.

    GitHub Actions - Create a new repository

  3. In your new GitHub repository, create a .github/workflows directory .

  4. In the .github/workflows directory, create a file named action.yml.

    GitHub Actions - add file

    GitHub Actions - Create new file

    For example, the following action.yml file prints a bunch of statements to the console.

    GitHub Actions - demo YAML

  5. To save your changes, click Commit.

    GitHub Actions - commit file

You can now run the jobs in your pipeline by navigating to Actions > All workflows.

GitHub Actions - workflow run

 

Next, create a BlazeMeter test and use BlazeMeter functions in the action.yml file. For more information, continue reading about Github Actions and BlazeMeter-related Functions. For a reference of the variables used, see GitHub Actions and BlazeMeter-related Variables.