-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.69 KB
/
k6-qryn-loki.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
49
50
51
52
53
54
55
56
name: K6 Loki Test qryn:latest
on:
workflow_dispatch:
inputs:
qryn_tag:
description: 'Build/Tag for qryn (latest)'
required: false
clickhouse_tag:
description: 'BuildTag for ClickHouse (latest)'
required: false
jobs:
build:
name: Run k6 on qryn:latest
runs-on: ubuntu-latest
env:
QRYN_VERSION: "clickhouse/clickhouse-server:${{ github.event.inputs.qryn_tag || 'latest' }}"
CLICKHOUSE_VERSION: "qxip/qryn:${{ github.event.inputs.clickhouse_tag || 'latest' }}"
services:
clickhouse:
image: "clickhouse/clickhouse-server:${{ github.event.inputs.qryn_tag || 'latest' }}"
ports:
- 8123:8123
qryn:
image: "qxip/qryn:${{ github.event.inputs.clickhouse_tag || 'latest' }}"
ports:
- 3100:3100
env:
CLICKHOUSE_SERVER: clickhouse
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Download k6 for Prometheus
run: |
wget https://github.com/metrico/qryn-bench/releases/download/latest/k6
chmod +x k6
- name: Run k6 loki test
run: ./k6 run --out csv=results.csv loki/qryn-loki-loadtest.js
- uses: actions/upload-artifact@v3
with:
name: results
path: |
results.csv
summary.html
- name: Convert HTML to Markdown
id: html2markdown
uses: rknj/[email protected]
with:
html-file: "summary.html"
- name: Summary Report
run: |
echo "${{ steps.html2markdown.outputs.markdown-content }}" >> $GITHUB_STEP_SUMMARY