-
Notifications
You must be signed in to change notification settings - Fork 100
97 lines (80 loc) · 2.29 KB
/
testing.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Testing
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
tests_single:
name: Testing single server
runs-on: ubuntu-latest
env:
CLICKHOUSE_PORT: 18123
CLICKHOUSE_DATABASE: default
strategy:
fail-fast: true
max-parallel: 1
matrix:
version:
- ruby: 2.7
rails: 7.1.3
- ruby: 3.0
rails: 7.1.3
- ruby: 3.2
rails: 7.1.3
- ruby: 3.2
rails: 7.2.0
clickhouse: [ '22.1', '24.6' ]
steps:
- uses: actions/checkout@v4
- name: Start ClickHouse ${{ matrix.clickhouse }}
uses: isbang/compose-action@v1.5.1
env:
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
with:
compose-file: '.docker/docker-compose.yml'
down-flags: '--volumes'
- run: echo 'gem "activerecord", "~> ${{ matrix.version.rails }}"' >> Gemfile
- name: Set up Ruby ${{ matrix.version.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.version.ruby }}
bundler-cache: true
- run: bundle exec rspec spec/single
tests_cluster:
name: Testing cluster server
runs-on: ubuntu-latest
env:
CLICKHOUSE_PORT: 28123
CLICKHOUSE_DATABASE: default
CLICKHOUSE_CLUSTER: test_cluster
strategy:
fail-fast: true
max-parallel: 1
matrix:
version:
- ruby: 2.7
rails: 7.1.3
- ruby: 3.0
rails: 7.1.3
- ruby: 3.2
rails: 7.1.3
- ruby: 3.2
rails: 7.2.0
clickhouse: [ '22.1', '24.6' ]
steps:
- uses: actions/checkout@v4
- name: Start ClickHouse Cluster ${{ matrix.clickhouse }}
uses: isbang/compose-action@v1.5.1
env:
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
with:
compose-file: '.docker/docker-compose.cluster.yml'
down-flags: '--volumes'
- run: echo 'gem "activerecord", "~> ${{ matrix.version.rails }}"' >> Gemfile
- name: Set up Ruby ${{ matrix.version.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.version.ruby }}
bundler-cache: true
- run: bundle exec rspec spec/cluster