XK6 Browser test using Gitlab CI

Hi,

I wanted to run K6 browser test via Gitlab CI. I couldnt find any examples by using a docker image. Is the below sample code will work for Browser test as well? if not, what are the modifications needs to be done. Appreciate your support
stages:

  • build
  • deploy
  • loadtest-local

image:
name: ubuntu:latest

build:
stage: build
script:
- echo “building my application in ubuntu container…”

deploy:
stage: deploy
script:
- echo “deploying my application in ubuntu container…”

loadtest-local:
image:
name: grafana/k6:latest
entrypoint: [‘’]
stage: loadtest-local
script:
- echo “executing local k6 in k6 container…”
- k6 run ./loadtests/performance-test.js

Hi @joeganesh,

We didn’t try running k6-browser via Gitlab CI. You can find a Docker example here — the example uses this image.

I hope this helps.