Add test wakatime db

This commit is contained in:
Max Wofford 2025-05-09 13:12:02 -04:00
parent 7cd9ea0b55
commit 75539632f3
2 changed files with 5 additions and 1 deletions

View file

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

View file

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