Skip to content

Commit

Permalink
Tweaked how the PG test data is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-knight committed Sep 14, 2022
1 parent 2325ccb commit 10f1ced
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ jobs:
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Update & install sqlite3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ redis_url: "redis://localhost:6379"
when "mysql" -%>
database_url: mysql://root@localhost:3306/<%= database_name %>_test
<% when "pg" -%>
database_url: postgres://postgres:password@localhost:5432/<%= database_name %>_test
database_url: <%= "postgres://postgres:#{ENV["POSTGRES_PASSWORD"]? || "password"}@localhost:5432/#{database_name}_test" %>
<% when "sqlite" -%>
database_url: sqlite3:./db/<%= database_name %>_test.db
<% else
Expand Down

0 comments on commit 10f1ced

Please sign in to comment.