Skip to content

Commit

Permalink
Fix Ruby 2.7 CI
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Jul 29, 2024
1 parent 548f0c4 commit e764c5b
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,28 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '3.2', '3.1', '3.0', '2.7' ]
ruby: [ '3.2', '3.1', '3.0' ]
os:
- ubuntu-latest
rdkafka_versions:
- { min: '>= 0.6.0', max: '< 0.12.0' }
- { min: '>= 0.12.0', max: '>= 0.12.0' }
bundler_version:
- '2.5.16'
# rdkafka 0.15.2 is the last version which supports Ruby 2.7
include:
- ruby: '2.7'
os:
- ubuntu-latest
rdkafka_versions:
- { min: '>= 0.6.0', max: '< 0.12.0' }
- ruby: '2.7'
os:
- ubuntu-latest
rdkafka_versions:
- { min: '>= 0.12.0', max: '= 0.15.2' }
bundler_version:
- '2.4.22'
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }} with rdkafka gem version (min ${{ matrix.rdkafka_versions.min }} max ${{ matrix.rdkafka_versions.max }})
steps:
- uses: actions/checkout@v4
Expand All @@ -40,6 +56,7 @@ jobs:
RDKAFKA_VERSION_MAX_RANGE: ${{ matrix.rdkafka_versions.max }}
run: |
sudo ./ci/prepare-kafka-server.sh
gem install bundler rake
bundle install --jobs 4 --retry 3
bundle exec rake test
gem install bundler -v ${{ matrix.bundler_version }}
gem install rake
bundle _${{ matrix.bundler_version }}_ install --jobs 4 --retry 3
bundle _${{ matrix.bundler_version }}_ exec rake test

0 comments on commit e764c5b

Please sign in to comment.