# XK6 Browser test using Gitlab CI

**URL:** <https://community.grafana.com/t/xk6-browser-test-using-gitlab-ci/121390>\
**Category:** k6-browser\
**Created:** [May 10, 2024, 10:30am UTC](https://community.grafana.com/t/xk6-browser-test-using-gitlab-ci/121390 "2024-05-10T10:30:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeganesh](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@joeganesh](https://community.grafana.com/u/joeganesh)\
**Post date:** [May 10, 2024, 10:30am UTC](https://community.grafana.com/t/xk6-browser-test-using-gitlab-ci/121390/1 "2024-05-10T10:30:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![inancgumus](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/inancgumus/32/34670_2.png) [@inancgumus](https://community.grafana.com/u/inancgumus)\
**Post date:** [May 13, 2024, 9:22am UTC](https://community.grafana.com/t/xk6-browser-test-using-gitlab-ci/121390/3 "2024-05-13T09:22:55Z")

</div>

Hi @joeganesh,

We didn’t try running k6-browser via Gitlab CI. You can find a Docker example [here](https://grafana.com/docs/k6/latest/using-k6-browser/running-browser-tests/) — the example uses [this image](https://hub.docker.com/layers/grafana/k6/master-with-browser/images/sha256-983d15456e543892e2ec496f52b6e22b28a092621fee92ee4cb6ad6ad8daaf0a?context=explore).

I hope this helps.
