-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 904 Bytes
/
k6.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: K6 Performance Tests
on:
workflow_dispatch:
inputs:
script:
type: choice
default: 'IdP_keys.js'
options:
- IdP_keys.js
- All_IdP.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
uses: grafana/run-k6-action@v1
with:
path: |
./src/${{ inputs.script }}
- name: Upload Report
uses: actions/upload-artifact@v4
with:
name: k6-browser-report-summary
path: TestSummaryReport.html