Merge pull request #12 from getlago/upstream #19
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
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/[email protected] | |
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/[email protected] | |
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 |