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