70 lines (63 loc) · 1.61 KB
/
run-tests.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: run-tests
on:
push:
branches:
- v1
- main
pull_request:
branches:
- v1
- main
schedule:
- cron: "0 9 1 * *"
jobs:
single-node:
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 1
matrix:
go:
- "1.19"
- "1.20"
clickhouse: # https://github.com/ClickHouse/ClickHouse/blob/master/SECURITY.md#scope-and-supported-versions
- "22.3"
- "22.8"
- "22.12"
- "23.1"
- "23.2"
- "latest"
steps:
- uses: actions/checkout@main
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2.1.5
with:
stable: false
go-version: ${{ matrix.go }}
- name: Run tests
run: |
CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test
integration-tests-cloud:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: true
matrix:
go:
- "1.19"
- "1.20"
steps:
- uses: actions/checkout@main
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2.1.5
with:
stable: false
go-version: ${{ matrix.go }}
- name: Run tests
env:
CLICKHOUSE_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST }}
CLICKHOUSE_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD }}
CLICKHOUSE_USE_DOCKER: false
CLICKHOUSE_USE_SSL: true
run: |
CLICKHOUSE_DIAL_TIMEOUT=20 CLICKHOUSE_TEST_TIMEOUT=600s CLICKHOUSE_QUORUM_INSERT=3 make test