From b9d201bbe5193377f957cecb145c1e53ead5ffca Mon Sep 17 00:00:00 2001 From: Watson Date: Tue, 21 May 2024 05:30:08 +0900 Subject: [PATCH] CI: Add Ruby 3.4 preview 1 --- .github/workflows/CI.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 251915c..d66f9ae 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -46,7 +46,7 @@ jobs: strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2', '3.3'] + ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4.0-preview1'] cassandra-version: ['3', '4', '5'] name: Linux, Cassandra ${{ matrix.cassandra-version }}, Ruby ${{ matrix.ruby-version }} @@ -62,6 +62,12 @@ jobs: bundler-cache: true - name: Prepare tests run: bundle exec rake compile + - name: Wait for Cassandra to be ready + run: | + while ! cqlsh -e 'describe keyspaces'; do + echo "Waiting for Cassandra to be ready..." + sleep 5 + done - name: Run tests run: bundle exec rake test @@ -71,7 +77,7 @@ jobs: strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2', '3.3'] + ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4.0-preview1'] name: macOS, Cassandra 4, Ruby ${{ matrix.ruby-version }} steps: @@ -86,5 +92,11 @@ jobs: bundler-cache: true - name: Prepare tests run: bundle exec rake compile + - name: Wait for Cassandra to be ready + run: | + while ! cqlsh -e 'describe keyspaces'; do + echo "Waiting for Cassandra to be ready..." + sleep 5 + done - name: Run tests run: bundle exec rake test