Skip to content

Commit

Permalink
Add rails 7 to the test matrix, drop ruby 2.6
Browse files Browse the repository at this point in the history
2.6 is EOL and not supported by rails 7.
  • Loading branch information
jrafanie committed Jan 17, 2024
1 parent 408db1e commit d7e0824
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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'
services:
postgres:
image: manageiq/postgresql:13
Expand Down
20 changes: 12 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in activerecord-id_regions.gemspec
gemspec

case ENV['TEST_RAILS_VERSION']
when "6.0"
gem "activerecord", "~>6.0.4"
gem "activesupport", "~>6.0.4"
when "6.1"
gem "activerecord", "~>6.1.4"
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 "activerecord", minimum_version
gem "activesupport", minimum_version

0 comments on commit d7e0824

Please sign in to comment.