Skip to content

Commit

Permalink
Add rails 7 to the test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Jan 17, 2024
1 parent 8952d52 commit 9a63c84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- '3.0'
rails-version:
- '6.1'
- '7.0'
services:
postgres:
image: manageiq/postgresql:13
Expand Down
16 changes: 9 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ require File.join(Bundler::Plugin.index.load_paths("bundler-inject")[0], "bundle
# Git. Remember to move these dependencies to your gemspec before releasing
# your gem to rubygems.org.

case ENV['TEST_RAILS_VERSION']
when "6.0"
# Default local bundling to use 6.0 for generating migrations
gem "rails", "~>6.0.4"
else
gem "rails", "~>6.1.6"
end
minimum_version =
case ENV['TEST_RAILS_VERSION']
when "7.0"
"~>7.0.8"
else
# Default local bundling to use this version for generating migrations
"~>6.1.4"
end
gem "rails", minimum_version

0 comments on commit 9a63c84

Please sign in to comment.