Skip to content

Commit 004c97a

Browse files
committed
Use latest RubyGems on Ruby >= 2.6
or CI on edge Rails (7.1 that requires RubyGems >= 3.3.13) would fail
1 parent dbf25e3 commit 004c97a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ jobs:
3737
- uses: actions/checkout@v2
3838

3939
- uses: ruby/setup-ruby@v1
40+
if: matrix.ruby >= '2.6'
41+
with:
42+
ruby-version: ${{ matrix.ruby }}
43+
bundler-cache: true
44+
rubygems: latest
45+
46+
- uses: ruby/setup-ruby@v1
47+
if: matrix.ruby < '2.6' # Skip updating RubyGems on old rubies
4048
with:
4149
ruby-version: ${{ matrix.ruby }}
4250
bundler-cache: true

0 commit comments

Comments
 (0)