Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Use matrix to delect using cassandra version #8

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 5 additions & 28 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,20 @@ env:
TESTOPTS: --verbose

jobs:
test-linux-cassandra4:
test-linux-cassandra:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2', '3.3']
cassandra-version: ['3', '4', '5']

name: Linux, Cassandra 4, Ruby ${{ matrix.ruby-version }}
name: Linux, Cassandra ${{ matrix.cassandra-version }}, Ruby ${{ matrix.ruby-version }}
steps:
- name: Start Cassandra v4
run: |
docker run --name cassandra -d -p 9042:9042 cassandra:4
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Prepare tests
run: bundle exec rake compile
- name: Run tests
run: bundle exec rake test

test-linux-cassandra3:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2', '3.3']

name: Linux, Cassandra 3, Ruby ${{ matrix.ruby-version }}
steps:
- name: Start Cassandra v3
- name: Start Cassandra v${{ matrix.cassandra-version }}
run: |
docker run --name cassandra -d -p 9042:9042 cassandra:3
docker run --name cassandra -d -p 9042:9042 cassandra:${{ matrix.cassandra-version }}
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
Loading