Skip to content

Commit 80be759

Browse files
committed
chore: e2e tests for clickhouse cluster
1 parent d3c617c commit 80be759

File tree

4 files changed

+2512
-0
lines changed

4 files changed

+2512
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow will validate qryn using nodejs + clickhouse
2+
3+
name: QRYN CI
4+
5+
on:
6+
push:
7+
branches: [ master, beta ]
8+
paths-ignore:
9+
- '**.md'
10+
- '**.yml'
11+
- '**.yaml'
12+
pull_request:
13+
branches: [ master, beta ]
14+
paths-ignore:
15+
- '**.md'
16+
- '**.yml'
17+
- '**.yaml'
18+
workflow_dispatch:
19+
inputs:
20+
clickhouse_tag:
21+
description: 'Tag for ClickHouse (23.8-alpine)'
22+
required: false
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
node-version: [18, 16.x, 20]
30+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/[email protected]
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
cache: 'npm'
38+
- run: npm install
39+
- run: npm run postinstall
40+
- run: git submodule init
41+
- run: git submodule update
42+
- run: docker-compose -f docker/e2e/docker-compose-cluster.yaml up -d
43+
- name: Workflow Telemetry
44+
uses: runforesight/[email protected]
45+
- env:
46+
CLUSTER_NAME: test_cluster_two_shards
47+
CLICKHOUSE_DB: qryn
48+
CLICKHOUSE_TSDB: qryn
49+
INTEGRATION_E2E: 1
50+
CLOKI_EXT_URL: 127.0.0.1:3100
51+
run: node qryn.mjs >/dev/stdout & npm run test --forceExit

0 commit comments

Comments
 (0)