Skip to content

Commit

Permalink
Add rails 7 testing, drop ruby 2.6
Browse files Browse the repository at this point in the history
Ruby 2.6 is EOL and not supported by rails 7.  If we really need it, can
test ruby 2.6 against rails < 7.
  • Loading branch information
jrafanie committed Jan 17, 2024
1 parent 6fb535d commit a1084d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
strategy:
matrix:
ruby-version:
- '2.6'
- '2.7'
- '3.0'
rails-version:
- '6.0'
- '6.1'
- '7.0'
env:
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down
17 changes: 11 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in manageiq-messaging.gemspec
gemspec

case ENV['TEST_RAILS_VERSION']
when "6.0"
gem "activesupport", "~>6.0.4"
when "6.1"
gem "activesupport", "~>6.1.4"
end
minimum_version =
case ENV['TEST_RAILS_VERSION']
when "6.0"
"~>6.0.4"
when "7.0"
"~>7.0.8"
else
"~>6.1.4"
end

gem "activesupport", minimum_version

0 comments on commit a1084d2

Please sign in to comment.