Skip to content

K6 Browser Load Tests #14

K6 Browser Load Tests

K6 Browser Load Tests #14

Workflow file for this run

name: K6 Browser Load Tests
on:
workflow_dispatch:
inputs:
script:
type: choice
default: 'k6browser.js'
options:
- k6browser.js
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- warning
jobs:
performance-tests:
runs-on: ubuntu-latest
env:
K6_BROWSER_ENABLED: false
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup k6
uses: grafana/setup-k6-action@v1
- name: Run k6 test
working-directory: ./src/
run: K6_BROWSER_ARGS='no-sandbox' K6_BROWSER_HEADLESS=true k6 run ${{ inputs.script }}
- name: Upload Report
uses: actions/upload-artifact@v4
with:
name: k6-browser-report-summary
path: TestSummaryReport.html