mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Add other test databases
This commit is contained in:
parent
5e3200f7d8
commit
74aaea36ec
2 changed files with 21 additions and 0 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue