Skip to content

Commit

Permalink
Provide the DATABASE_URL env var in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vitallium committed Apr 28, 2024
1 parent 95d214c commit 879f74b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- master
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres

jobs:
test:
name: "Test"
Expand Down
8 changes: 4 additions & 4 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
default: &default
adapter: postgresql
encoding: utf8
encoding: unicode
min_messages: warning
pool: <%= Integer(ENV.fetch("DB_POOL", 5)) %>
reaping_frequency: <%= Integer(ENV.fetch("DB_REAPING_FREQUENCY", 10)) %>
timeout: 5000

development:
<<: *default
url: it61_development
database: it61_development

test:
<<: *default
url: it61_test
database: it61_test

production:
encoding: utf8
Expand Down

0 comments on commit 879f74b

Please sign in to comment.