Skip to content

Commit

Permalink
Fix bundler in CI
Browse files Browse the repository at this point in the history
[Bundler 2.5 dropped support for Ruby 2.7](https://github.com/rubygems/rubygems/releases/tag/bundler-v2.5.0).
Since we are testing with Ruby 2.7, we should pin the version of Bundler
to 2.4.x since this is the last version that's compatible with 2.7.
  • Loading branch information
dtcristo committed Mar 5, 2024
1 parent fb9278e commit a3d8beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
sudo apt-get -yqq install libpq-dev postgresql-client
createdb que-test
gem install bundler
gem install bundler --version '~> 2.4.22'
bundle install --jobs 4 --retry 3
USE_RAILS=true bundle exec rake test
bundle exec rake test
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN apt-get update \
&& apt-get install -y libpq-dev \
&& rm -rf /var/lib/apt/lists/*

ENV RUBY_BUNDLER_VERSION 2.3.7
ENV RUBY_BUNDLER_VERSION 2.4.22
RUN gem install bundler -v $RUBY_BUNDLER_VERSION

ENV BUNDLE_PATH /usr/local/bundle
Expand Down

0 comments on commit a3d8beb

Please sign in to comment.