Skip to content

Commit

Permalink
Merge pull request #528 from Watson1978/bundler
Browse files Browse the repository at this point in the history
ci: use bundler installed by ruby/setup-ruby action
  • Loading branch information
kenhys authored Mar 4, 2025
2 parents 420d4f7 + 8d51a35 commit ce6e92a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ jobs:
- { min: '>= 0.12.0', max: '< 0.14.0' }
- { min: '>= 0.14.0', max: '< 0.16.0' }
- { min: '>= 0.16.0', max: '>= 0.16.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' }
bundler_version: '2.4.22'
- 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 @@ -54,7 +50,6 @@ jobs:
RDKAFKA_VERSION_MAX_RANGE: ${{ matrix.rdkafka_versions.max }}
run: |
sudo ./ci/prepare-kafka-server.sh
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
bundle install --jobs 4 --retry 3
bundle exec rake test

0 comments on commit ce6e92a

Please sign in to comment.