Skip to content

Commit

Permalink
chore: Update test DB configuration for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiosantana committed Aug 28, 2023
1 parent e9f0877 commit 0d31109
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: pages_ahead_test
options: >-
--health-cmd pg_isreadydb_test
--health-interval 10s
Expand Down
1 change: 1 addition & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ development:
# Do not set this db to the same as development or production.
test:
<<: *default
url: <%= ENV["CI"] ? ENV["DATABASE_URL"] : nil %>
database: pages_ahead_test

production:
Expand Down

0 comments on commit 0d31109

Please sign in to comment.