Skip to content

Commit fb9e102

Browse files
committed
CI: Specify Bundler version
Bundler `latest` has stopped working with older Rubies. We need to specify the Bundler version for the older Rubies to still build.
1 parent 266ec49 commit fb9e102

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/ci.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,43 @@ jobs:
99
include:
1010
- ruby: 2.5
1111
gemfile: "gemfiles/Gemfile.rails-6.1-sprockets-3"
12+
bundler: "2.3.0"
1213
- ruby: 2.5
1314
gemfile: "gemfiles/Gemfile.rails-6.1-sprockets-4"
14-
15+
bundler: "2.3.0"
1516
- ruby: 2.7
1617
gemfile: "gemfiles/Gemfile.rails-7.0-sprockets-3"
18+
bundler: "2.4.8"
1719
- ruby: 2.7
1820
gemfile: "gemfiles/Gemfile.rails-7.0-sprockets-4"
19-
21+
bundler: "2.4.8"
2022
- ruby: 2.7
2123
gemfile: "gemfiles/Gemfile.rails-7.1-sprockets-3"
24+
bundler: "2.4.8"
2225
- ruby: 2.7
2326
gemfile: "gemfiles/Gemfile.rails-7.1-sprockets-4"
24-
27+
bundler: "2.4.8"
2528
- ruby: 3.1
2629
gemfile: "gemfiles/Gemfile.rails-7.2-sprockets-3"
30+
bundler: default
2731
- ruby: 3.1
2832
gemfile: "gemfiles/Gemfile.rails-7.2-sprockets-4"
29-
33+
bundler: default
3034
- ruby: 3.2
3135
gemfile: "gemfiles/Gemfile.rails-8.0-sprockets-3"
36+
bundler: default
3237
- ruby: 3.2
3338
gemfile: "gemfiles/Gemfile.rails-8.0-sprockets-4"
34-
39+
bundler: default
3540
- ruby: 3.2
3641
gemfile: Gemfile
42+
bundler: default
3743
- ruby: 3.3
3844
gemfile: Gemfile
45+
bundler: default
3946
- ruby: head
4047
gemfile: Gemfile
48+
bundler: default
4149

4250
env:
4351
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
@@ -49,6 +57,8 @@ jobs:
4957
with:
5058
ruby-version: ${{ matrix.ruby }}
5159
bundler-cache: true
60+
cache-version: ${{ matrix.ruby }}-${{ matrix.ruby }}-${{ matrix.gemfile }}
61+
bundler: ${{ matrix.bundler }}
5262
- name: Run tests
5363
run: bundle exec rake
5464
continue-on-error: ${{ matrix.gemfile == 'Gemfile' }}

0 commit comments

Comments
 (0)