mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Add other test databases
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -104,6 +104,9 @@ jobs:
|
||||
run: |
|
||||
bin/rails db:create RAILS_ENV=test
|
||||
bin/rails db:migrate RAILS_ENV=test
|
||||
# Create additional test databases
|
||||
psql -h localhost -U postgres -c "CREATE DATABASE test_sailors_log;"
|
||||
psql -h localhost -U postgres -c "CREATE DATABASE test_warehouse;"
|
||||
bin/rails test
|
||||
|
||||
- name: Keep screenshots from failed system tests
|
||||
|
||||
@@ -47,9 +47,27 @@ test:
|
||||
username: postgres
|
||||
password: postgres
|
||||
# url: <%= ENV['TEST_DATABASE_URL'] %>
|
||||
primary_direct:
|
||||
adapter: postgresql
|
||||
database: test_db
|
||||
username: postgres
|
||||
password: postgres
|
||||
database_tasks: false
|
||||
wakatime:
|
||||
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
||||
replica: true
|
||||
sailors_log:
|
||||
adapter: postgresql
|
||||
database: test_sailors_log
|
||||
username: postgres
|
||||
password: postgres
|
||||
replica: true
|
||||
warehouse:
|
||||
adapter: postgresql
|
||||
database: test_warehouse
|
||||
username: postgres
|
||||
password: postgres
|
||||
replica: true
|
||||
|
||||
|
||||
# Store production database in the storage/ directory, which by default
|
||||
|
||||
Reference in New Issue
Block a user