-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #406 from metrico/e2e_for_cluster
chore: e2e tests for clickhouse cluster
- Loading branch information
Showing
4 changed files
with
2,517 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# This workflow will validate qryn using nodejs + clickhouse | ||
|
||
name: QRYN CI | ||
|
||
on: | ||
push: | ||
branches: [ master, beta ] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yml' | ||
- '**.yaml' | ||
pull_request: | ||
branches: [ master, beta ] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yml' | ||
- '**.yaml' | ||
workflow_dispatch: | ||
inputs: | ||
clickhouse_tag: | ||
description: 'Tag for ClickHouse (23.8-alpine)' | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18, 16.x, 20] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm install | ||
- run: npm run postinstall | ||
- run: git submodule init | ||
- run: git submodule update | ||
- run: docker-compose -f docker/e2e/docker-compose-cluster.yaml up -d | ||
- run: sleep 5 | ||
- name: Workflow Telemetry | ||
uses: runforesight/[email protected] | ||
- env: | ||
CLUSTER_NAME: test_cluster_two_shards | ||
CLICKHOUSE_DB: qryn | ||
CLICKHOUSE_TSDB: qryn | ||
run: node qryn.mjs >/dev/stdout & | ||
- env: | ||
CLICKHOUSE_DB: qryn | ||
CLICKHOUSE_TSDB: qryn | ||
INTEGRATION_E2E: 1 | ||
CLOKI_EXT_URL: 127.0.0.1:3100 | ||
run: npm run test --forceExit |
Oops, something went wrong.