Skip to content

Commit b5275d1

Browse files
committed
ci: Pin old Bundler for Ruby 2.7 and release others
This inverts the dependency strategy and within the CI matrix allows everything to use the latest except for Ruby 2.7 which is known to fail with later Bundler versions.
1 parent 80631e7 commit b5275d1

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "head"]
25+
include:
26+
- ruby: "2.7"
27+
bundler: "2.4.22"
2528
env:
2629
DEBUG: "true"
2730
steps:
2831
- uses: actions/checkout@v3
29-
- name: Remove bundler version pin for head Ruby
30-
if: matrix.ruby == 'head'
31-
run: sed -i '/^BUNDLED WITH/{N;d}' Gemfile.lock
3232
- name: Set up Ruby ${{ matrix.ruby }}
3333
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
3434
# change this to (see https://github.com/ruby/setup-ruby#versioning):
3535
uses: ruby/setup-ruby@v1
3636
with:
3737
ruby-version: ${{ matrix.ruby }}
38+
bundler: ${{ matrix.bundler || 'default' }}
3839
bundler-cache: true
3940
- name: Run tests
4041
run: bundle exec rake

Gemfile.lock

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,3 @@ DEPENDENCIES
132132
simplecov
133133
vcr (~> 2.5)
134134
webmock
135-
136-
BUNDLED WITH
137-
2.4.22

0 commit comments

Comments
 (0)