Run BlazeMeter tests from GitHub Actions

You can use GitHub Actions to integrate BlazeMeter Performance and API Monitoring tests into your development workflow. 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.

  • For Performance tests, 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.

  • For API Monitoring tests, GitHub Actions workflows execute jobs inside GitHub‑hosted runners. You can use these workflows to trigger existing BlazeMeter API Monitoring tests or bucket‑level API Monitoring tests using their trigger URL.

Github Actions rely on a YAML file. For the full list of BlazeMeter-related functions and variables, see:

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 YAML file.

    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