Add other test databases

This commit is contained in:
Max Wofford 2025-05-09 12:54:58 -04:00
parent 5e3200f7d8
commit 74aaea36ec
2 changed files with 21 additions and 0 deletions

View file

@ -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

View file

@ -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