1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

database_gha.yml == database.yml

This commit is contained in:
Akira Matsuda 2021-05-05 13:36:00 +09:00
parent 883ed6249d
commit c5164bf382
3 changed files with 2 additions and 25 deletions

View file

@ -95,6 +95,5 @@ jobs:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' || matrix.ruby_version == 'jruby-9.2.17.0' || matrix.gemfile == 'gemfiles/active_record_edge.gemfile' }}
- run: mv kaminari-core/test/fake_app/config/database_gha.yml kaminari-core/test/fake_app/config/database.yml
- run: bundle exec rake test
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' || matrix.ruby_version == 'jruby-9.2.17.0' || matrix.gemfile == 'gemfiles/active_record_edge.gemfile' }}

View file

@ -8,14 +8,14 @@ postgresql: &postgresql
adapter: postgresql
host: localhost
username: postgres
password:
password: <%= ENV['POSTGRES_PASSWORD'] %>
database: kaminari_test
mysql: &mysql
adapter: mysql2
host: localhost
username: root
password:
password: <%= ENV['MYSQL_PASSWORD'] %>
database: kaminari_test
test:

View file

@ -1,22 +0,0 @@
sqlite3: &sqlite3
adapter: sqlite3
database: <%= File.expand_path '../../kaminari_test.sqlite3', __FILE__ %>
pool: 5
timeout: 5000
postgresql: &postgresql
adapter: postgresql
host: localhost
username: postgres
password: <%= ENV['POSTGRES_PASSWORD'] %>
database: kaminari_test
mysql: &mysql
adapter: mysql2
host: localhost
username: root
password: <%= ENV['MYSQL_PASSWORD'] %>
database: kaminari_test
test:
<<: *<%= ENV['DB'] %>