diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 34c28817..b9f3ccc0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,9 @@ jobs: - 3.1 - 3.2 - 3.3 + adapter: + - trilogy + - mysql2 gemfile: - gemfiles/rails_6_1.gemfile - gemfiles/rails_7_0.gemfile @@ -28,6 +31,7 @@ jobs: env: PERCONA_DB_USER: root PERCONA_DB_PASSWORD: root + PERCONA_DB_ADAPTER: ${{ matrix.adapter }} BUNDLE_GEMFILE: ${{ matrix.gemfile }} runs-on: ubuntu-latest steps: diff --git a/config.yml.erb b/config.yml.erb index e46248cc..d24d2095 100644 --- a/config.yml.erb +++ b/config.yml.erb @@ -3,3 +3,4 @@ password: <%= ENV['PERCONA_DB_PASSWORD'] || '' %> database: <%= ENV['PERCONA_DB_NAME'] || 'departure_test' %> hostname: <%= ENV['PERCONA_DB_HOST'] || 'localhost' %> socket: <%= ENV['PERCONA_DB_SOCKET'] || '' %> +original_adapter: <%= ENV['PERCONA_DB_ADAPTER'] || 'mysql2' %> diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1a71be76..33cc9726 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -26,6 +26,7 @@ ActiveRecord::Base.establish_connection( adapter: 'percona', + original_adapter: db_config['original_adapter'], host: db_config['hostname'], username: db_config['username'], password: db_config['password'],