mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Add test wakatime db
This commit is contained in:
parent
7cd9ea0b55
commit
75539632f3
2 changed files with 5 additions and 1 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -105,6 +105,7 @@ jobs:
|
|||
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_wakatime;"
|
||||
psql -h localhost -U postgres -c "CREATE DATABASE test_sailors_log;"
|
||||
psql -h localhost -U postgres -c "CREATE DATABASE test_warehouse;"
|
||||
bin/rails test
|
||||
|
|
|
|||
|
|
@ -54,7 +54,10 @@ test:
|
|||
password: postgres
|
||||
database_tasks: false
|
||||
wakatime:
|
||||
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
||||
adapter: postgresql
|
||||
database: test_wakatime
|
||||
username: postgres
|
||||
password: postgres
|
||||
replica: true
|
||||
sailors_log:
|
||||
adapter: postgresql
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue