.github/workflows/ci.yml in karafka-2.2.14 vs .github/workflows/ci.yml in karafka-2.3.0.alpha1
- old
+ new
@@ -25,11 +25,11 @@
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
- ruby-version: 3.2
+ ruby-version: 3.3
bundler-cache: true
- name: Install Diffend plugin
run: bundle plugin install diffend
@@ -71,22 +71,21 @@
needs: diffend
strategy:
fail-fast: false
matrix:
ruby:
- - '3.3.0-preview2'
+ - '3.3'
- '3.2'
# We run it against the oldest and the newest of a given major to make sure, that there
# are no syntax-sugars that we would use that were introduced down the road
- '3.1'
- '3.1.0'
- '3.0'
- '3.0.0'
- '2.7'
- - '2.7.0'
include:
- - ruby: '3.2'
+ - ruby: '3.3'
coverage: 'true'
steps:
- uses: actions/checkout@v4
- name: Install package dependencies
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
@@ -98,10 +97,11 @@
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
+ bundler: 'latest'
- name: Wait for Kafka
run: |
bundle exec bin/wait_for_kafka
@@ -116,11 +116,11 @@
needs: diffend
strategy:
fail-fast: false
matrix:
ruby:
- - '3.3.0-preview2'
+ - '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
steps:
@@ -141,22 +141,35 @@
# Do not use cache here as we run bundle install also later in some of the integration
# tests and we need to be able to run it without cache
#
# We also want to check that librdkafka is compiling as expected on all versions of Ruby
ruby-version: ${{matrix.ruby}}
+ bundler: 'latest'
- name: Install latest Bundler
run: |
- gem install bundler --no-document
- gem update --system --no-document
+ if [[ "$(ruby -v | awk '{print $2}')" == 2.7.8* ]]; then
+ gem install bundler -v 2.4.22 --no-document
+ bundle config set version 2.4.22
+ gem update --system 3.4.22 --no-document
+ else
+ gem install bundler --no-document
+ gem update --system --no-document
+ fi
+
bundle config set without 'tools benchmarks docs'
- name: Bundle install
run: |
bundle config set without development
- bundle install
+ if [[ "$(ruby -v | awk '{print $2}')" == 2.7.8* ]]; then
+ BUNDLER_VERSION=2.4.22 bundle install --jobs 4 --retry 3
+ else
+ bundle install --jobs 4 --retry 3
+ fi
+
- name: Wait for Kafka
run: |
bundle exec bin/wait_for_kafka
- name: Run OSS integration tests
@@ -168,11 +181,11 @@
needs: diffend
strategy:
fail-fast: false
matrix:
ruby:
- - '3.3.0-preview2'
+ - '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
steps:
@@ -186,20 +199,33 @@
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
+ bundler: 'latest'
- name: Install latest Bundler
run: |
- gem install bundler --no-document
- gem update --system --no-document
+ if [[ "$(ruby -v | awk '{print $2}')" == 2.7.8* ]]; then
+ gem install bundler -v 2.4.22 --no-document
+ bundle config set version 2.4.22
+ gem update --system 3.4.22 --no-document
+ else
+ gem install bundler --no-document
+ gem update --system --no-document
+ fi
+
bundle config set without 'tools benchmarks docs'
- name: Bundle install
run: |
bundle config set without development
- bundle install
+
+ if [[ "$(ruby -v | awk '{print $2}')" == 2.7.8* ]]; then
+ BUNDLER_VERSION=2.4.22 bundle install --jobs 4 --retry 3
+ else
+ bundle install --jobs 4 --retry 3
+ fi
- name: Wait for Kafka
run: |
bundle exec bin/wait_for_kafka