-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.21 KB
/
dialogporten-loadtest-push.yml
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
45
46
47
48
name: dialogporten loadtest smoketest
on:
push:
branches:
- '**'
paths:
- performance-tests/dialogporten/**
- .github/workflows/dialogporten-loadtest-push.yml
jobs:
run-dialogporten-on-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install xk6
run: go install go.k6.io/xk6/cmd/xk6@latest
- name: Build xk6-counter binary
working-directory: ./performance-tests/dialogporten/src
run: xk6 build --with github.com/avitalique/xk6-file@latest
- name: Run k6 to generate tokens
working-directory: ./performance-tests/dialogporten/src
run: ./k6 run generate-tokens.js
env:
env: tt02
tokengenuser: dpoctest
tokengenuserpwd: digdirbnn73520
limit: 1
- name: Setup K6
uses: grafana/setup-k6-action@v1
- name: Run local k6 test
uses: grafana/run-k6-action@v1
with:
path: performance-tests/dialogporten/src/create-dialog.js
flags: --vus=1 --iterations=1
env:
env: tt02