Commit 3b5a1a0c by mishina2228 Committed by GitHub

CI against Ruby 3.0 and 3.1 (#523)

* Install gems for rbx platform only when running rbx

or bundle install fails on ruby 3 because rubysl ~> 2.0 doesn't support ruby 3

This commit is based on this commit:
https://github.com/kaminari/kaminari/commit/59dbc12.

* CI against Ruby 3.0 again

3.0 without quoting is interpreted as 3, so change it to '3.0'.

* CI against Ruby 3.1
parent 47997ee7
...@@ -16,7 +16,8 @@ jobs: ...@@ -16,7 +16,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
ruby: ruby:
# - 3.0 # incompatible with rubysl - 3.1
- '3.0'
- 2.7 - 2.7
- 2.6 - 2.6
- 2.5 - 2.5
...@@ -41,9 +42,13 @@ jobs: ...@@ -41,9 +42,13 @@ jobs:
ruby: 2.5 ruby: 2.5
# Legacy Rails with newer rubies # Legacy Rails with newer rubies
- rails: '~> 5.1.0' - rails: '~> 5.1.0'
ruby: 3.0 ruby: '3.0'
- rails: '~> 5.2.0' - rails: '~> 5.2.0'
ruby: 3.0 ruby: '3.0'
- rails: '~> 5.1.0'
ruby: 3.1
- rails: '~> 5.2.0'
ruby: 3.1
env: env:
RAILS: ${{ matrix.rails }} RAILS: ${{ matrix.rails }}
......
...@@ -12,10 +12,12 @@ platforms :jruby do ...@@ -12,10 +12,12 @@ platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter' gem 'activerecord-jdbcsqlite3-adapter'
end end
platforms :rbx do if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubinius-developer_tools' gem 'rubinius-developer_tools'
gem 'rubysl', '~> 2.0' gem 'rubysl', '~> 2.0'
gem 'rubysl-test-unit' gem 'rubysl-test-unit'
end
end end
rails = ENV['RAILS'] || '~> 5.2.0' rails = ENV['RAILS'] || '~> 5.2.0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment