mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Update test db configs
This commit is contained in:
parent
28ae835e32
commit
5c565d796b
2 changed files with 4 additions and 14 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -91,7 +91,7 @@ jobs:
|
|||
env:
|
||||
RAILS_ENV: test
|
||||
# REDIS_URL: redis://localhost:6379/0
|
||||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
||||
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
||||
run: bin/rails db:test:prepare test test:system
|
||||
|
||||
- name: Keep screenshots from failed system tests
|
||||
|
|
|
|||
|
|
@ -5,21 +5,17 @@
|
|||
# gem "sqlite3"
|
||||
#
|
||||
default: &default
|
||||
adapter: sqlite3
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
timeout: 5000
|
||||
|
||||
development:
|
||||
primary:
|
||||
<<: *default
|
||||
# database: storage/development.sqlite3
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
url: <%= ENV['DATABASE_URL'] %>
|
||||
wakatime:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
||||
replica: true
|
||||
|
||||
|
|
@ -29,10 +25,8 @@ development:
|
|||
test:
|
||||
primary:
|
||||
<<: *default
|
||||
database: storage/test.sqlite3
|
||||
url: <%= ENV['TEST_DATABASE_URL'] %>
|
||||
wakatime:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
||||
replica: true
|
||||
|
||||
|
|
@ -41,13 +35,9 @@ test:
|
|||
# is mounted as a persistent Docker volume in config/deploy.yml.
|
||||
production:
|
||||
primary:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
url: <%= ENV['DATABASE_URL'] %>
|
||||
wakatime:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
||||
replica: true
|
||||
cache:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue