Skip to content

Maintain primary key type specificity #100

Maintain primary key type specificity

Maintain primary key type specificity #100

Workflow file for this run

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 --format progress
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 --format progress