Skip to content

Commit

Permalink
Separate test workflow for Ruby 2.2.10
Browse files Browse the repository at this point in the history
Ruby 2.2.10 cannot be installed on the latest Ubuntu but the Ubuntu 20.04.

Reference: GitHub / ruby / setup-ruby / Bundler install appears broken
           on Ruby 2.2 / the summary comment by eregon [1]

Error output:

  Installing Bundler
    Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2
    /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0
    ERROR:  While executing gem ... (RuntimeError)
        Marshal.load reentered at marshal_load
    Took   0.28 seconds

[1] ruby/setup-ruby#496 (comment)
  • Loading branch information
gemmaro committed Dec 24, 2023
1 parent 34847f5 commit 66e5beb
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- 1.9.3
- 2.0.0
- 2.1.9
- 2.2.10
- 2.3.8
- 2.4.10
- 2.5.9
Expand All @@ -37,3 +36,28 @@ jobs:

- name: Run tests
run: bundle exec rake

# Bundler with Ruby 2.2.10 doesn't work for the latest Ubuntu.
# See also: https://github.com/ruby/setup-ruby/issues/496#issuecomment-1625000309
test-ruby-2-2-10:
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
ruby-version:
- 2.2.10

steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

0 comments on commit 66e5beb

Please sign in to comment.