• TypeScript 94.3%
  • JavaScript 5.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Griatch 43b9fc2164
fix: remediate CVEs (CVE-2026-13149, CVE-2026-14257, CVE-2026-12151) (#70)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 16:56:44 +02:00
.github/workflows fix: authenticate git push in move-major-tag workflow (#67) 2026-04-29 09:10:58 +01:00
dev first commit 2024-04-02 10:54:06 +02:00
dist fix: remediate CVEs (CVE-2026-13149, CVE-2026-14257, CVE-2026-12151) (#70) 2026-09-21 16:56:44 +02:00
src feat: migrate to Node.js 24 and update dependencies (#66) 2026-04-27 10:57:58 +01:00
.gitignore first commit 2024-04-02 10:54:06 +02:00
.node-version feat: migrate to Node.js 24 and update dependencies (#66) 2026-04-27 10:57:58 +01:00
.npmrc build: pin package manager and disable automatic lifecycle scripts (#68) 2026-05-12 10:35:10 +01:00
.yarnrc build: pin package manager and disable automatic lifecycle scripts (#68) 2026-05-12 10:35:10 +01:00
.yarnrc.yml build: pin package manager and disable automatic lifecycle scripts (#68) 2026-05-12 10:35:10 +01:00
action.yaml feat: migrate to Node.js 24 and update dependencies (#66) 2026-04-27 10:57:58 +01:00
catalog-info.yaml Register Component into Software Catalog and set up TechDocs publishing (#69) 2026-06-01 15:36:27 +00:00
CODEOWNERS Update CODEOWNERS to assign ownership to k6-core (#72) 2026-09-17 15:53:38 +01:00
k6.gif [feat] Update README 2024-05-01 15:21:03 +01:00
LICENSE first commit 2024-04-02 10:54:06 +02:00
package-lock.json fix: remediate CVEs (CVE-2026-13149, CVE-2026-14257, CVE-2026-12151) (#70) 2026-09-21 16:56:44 +02:00
package.json build: pin package manager and disable automatic lifecycle scripts (#68) 2026-05-12 10:35:10 +01:00
README.md s/K6/k6 (#18) 2025-02-13 14:22:48 +01:00
renovate.json Add renovate config to compile TS files on PRs (#40) 2026-01-19 12:53:45 -03:00
tsconfig.json feat: migrate to Node.js 24 and update dependencies (#66) 2026-04-27 10:57:58 +01:00


Open source performance testing tool and SaaS for ambitious engineering teams.

setup-k6-action

This action sets up a Grafana k6 environment for use in a GitHub Actions workflow by:

  • Installing a specific version of k6.
  • Installing Chrome for Browser Testing (optional).

After that we can use the run-k6-action to execute the k6 tests in the GitHub Actions workflow.

Inputs

The following inputs can be used as step.with key:

Name Type Required Description
k6-version string false Specify the k6 version to use. e.g. '0.49.0'. If not set, latest k6 version will be used.
browser boolean false Default false. If set to true chrome is also installed along with k6 for Browser testing.

Usage

Following are some examples of using the workflow.

Basic

Uses the latest k6 version

on:
  push:

jobs:
  protocol:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: grafana/setup-k6-action@v1
      - uses: grafana/run-k6-action@v1
        with:
          path: |
            ./tests/api*.js

Specify which k6 version to use

on:
  push:

jobs:
  protocol:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: grafana/setup-k6-action@v1
        with:
          k6-version: '0.49.0'
      - uses: grafana/run-k6-action@v1
        with:
          path: |
            ./tests/api*.js

Browser Testing

on:
  push:

jobs:
  protocol:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: grafana/setup-k6-action@v1
        with:
          k6-version: '0.49.0'
          browser: true
      - uses: grafana/run-k6-action@v1
        with:
          path: |
            ./tests/api*.js