Skip to content

Commit

Permalink
Add to CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarraz authored and dependabot[bot] committed Apr 25, 2022
1 parent 4d50128 commit e198ba6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- '3.0'
- '2.7'
activerecord:
- '7.0'
- '6.1'
- '6.0'
- '5.2'
Expand Down
5 changes: 5 additions & 0 deletions gemfiles/activerecord_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gemspec path: "../"

gem "activerecord", "~> 7.0.0"
3 changes: 2 additions & 1 deletion spec/support/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module ActiveRecord::Import::Connection
ActiveRecord::Base.configurations = YAML.load_file(database_yml)
ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), '../debug.log'))
ActiveRecord::Base.logger.level = ENV['CI'] ? ::Logger::ERROR : ::Logger::DEBUG
config = ActiveRecord::Base.configurations[db_name]
configs = ActiveRecord::Base.configurations
config = configs.try(:find_db_config, db_name) || configs[db_name]

begin
ActiveRecord::Base.establish_connection(db_name.to_sym)
Expand Down

0 comments on commit e198ba6

Please sign in to comment.