Skip to content

Commit

Permalink
CI against Ruby 3.0 and 3.1 (#523)
Browse files Browse the repository at this point in the history
* 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:
kaminari/kaminari@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
  • Loading branch information
mishina2228 committed Jan 12, 2022
1 parent 47997ee commit 3b5a1a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -16,7 +16,8 @@ jobs:
fail-fast: false
matrix:
ruby:
# - 3.0 # incompatible with rubysl
- 3.1
- '3.0'
- 2.7
- 2.6
- 2.5
Expand All @@ -41,9 +42,13 @@ jobs:
ruby: 2.5
# Legacy Rails with newer rubies
- rails: '~> 5.1.0'
ruby: 3.0
ruby: '3.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:
RAILS: ${{ matrix.rails }}
Expand Down
10 changes: 6 additions & 4 deletions Gemfile
Expand Up @@ -12,10 +12,12 @@ platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
end

platforms :rbx do
gem 'rubinius-developer_tools'
gem 'rubysl', '~> 2.0'
gem 'rubysl-test-unit'
if RUBY_ENGINE == 'rbx'
platforms :rbx do
gem 'rubinius-developer_tools'
gem 'rubysl', '~> 2.0'
gem 'rubysl-test-unit'
end
end

rails = ENV['RAILS'] || '~> 5.2.0'
Expand Down

0 comments on commit 3b5a1a0

Please sign in to comment.