Skip to content

Commit c694c06

Browse files
committed
Ensure Gemfile.lock is created with Bundler 2 for Ruby 4
1 parent 4190dd0 commit c694c06

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ jobs:
151151
# and https://github.com/sinatra/sinatra/issues/2051 (3.1)
152152
rubygems: ${{ matrix.ruby == '3.0' && 'latest' || matrix.ruby == '3.1' && 'latest' || 'default' }}
153153

154+
# workaround for https://github.com/ruby/setup-ruby/issues/845
155+
- name: Ensure Gemfile.lock is created with Bundler 2 for Ruby 4
156+
if: matrix.ruby == '4.0' || matrix.ruby == 'ruby-head'
157+
run: |
158+
rm Gemfile.lock
159+
bundle install
160+
env:
161+
BUNDLER_VERSION: ${{ matrix.bundler }}
162+
154163
- name: Run sinatra tests
155164
continue-on-error: ${{ matrix.allow-failure || false }}
156165
id: tests

0 commit comments

Comments
 (0)