From a3d8beb8fff09298c23f82e35c5f498a1abd1424 Mon Sep 17 00:00:00 2001 From: David Cristofaro Date: Tue, 5 Mar 2024 11:38:22 +1100 Subject: [PATCH] Fix bundler in CI [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. --- .github/workflows/tests.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 41c814ef..77965ddc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index cc85d0da..f10a61f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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