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 4d4f838 commit e9f0877
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ jobs:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: pages_ahead_test
options: >-
--health-cmd pg_isready
--health-cmd pg_isreadydb_test
--health-interval 10s
--health-timeout 5s
--health-retries 5
Expand All @@ -35,7 +37,7 @@ jobs:
- name: Setup test database
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@postgres:5432/test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/pages_ahead_test

run: |
bundle exec rails db:create
Expand Down

0 comments on commit e9f0877

Please sign in to comment.