.github/workflows/test.yml in pdfkit-0.8.7.2 vs .github/workflows/test.yml in pdfkit-0.8.7.3
- old
+ new
@@ -41,9 +41,21 @@
env:
RAILS_VERSION: ${{ matrix.rails }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
+ # rubygems-update's latest is no longer compatible with ruby 2.5, so conditionally run ruby-setup setting the
+ # rubygem version the most recent valid version for 2.5:
+ # https://rubygems.org/gems/rubygems-update/versions/3.3.26
+ if: ${{ matrix.ruby == '2.5' }}
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ rubygems: 3.3.26
+ bundler: latest
+ bundler-cache: true
+ - uses: ruby/setup-ruby@v1
+ # otherwise, we can use rubygems latest
+ if: ${{ matrix.ruby != '2.5' }}
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler: latest
bundler-cache: true