Skip to content

Commit b23e4bd

Browse files
committed
Run old rubies on Ubuntu 20.04
See ruby/setup-ruby#496
1 parent b8dbc85 commit b23e4bd

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/ruby.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on: [ push, pull_request ]
55

66
jobs:
77
test_matrix:
8-
98
strategy:
109
fail-fast: false
1110
matrix:
@@ -31,6 +30,8 @@ jobs:
3130
- truffleruby-head
3231
- mingw
3332
exclude:
33+
- { os: ubuntu, ruby: 2.1 }
34+
- { os: ubuntu, ruby: 2.2 }
3435
- { os: ubuntu, ruby: mingw }
3536
- { os: macos, ruby: mingw }
3637
- { os: windows, ruby: truffleruby }
@@ -52,6 +53,26 @@ jobs:
5253
env:
5354
JAVA_OPTS: -Djdk.io.File.enableADS=true
5455

56+
test_matrix_old_rubies:
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
ruby:
61+
- 2.1
62+
- 2.2
63+
64+
runs-on: ubuntu-20.04
65+
66+
steps:
67+
- uses: actions/checkout@v2
68+
- name: Set up Ruby
69+
uses: ruby/setup-ruby@v1
70+
with:
71+
ruby-version: ${{ matrix.ruby }}
72+
bundler-cache: true
73+
- name: Run tests
74+
run: bundle exec rake default
75+
5576
finish:
5677
runs-on: ubuntu-latest
5778
needs: [ test_matrix ]

0 commit comments

Comments
 (0)