Skip to content

Commit

Permalink
Set tested adapter in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Jul 23, 2024
1 parent f6c563c commit 3e8e014
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions config.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 3e8e014

Please sign in to comment.