diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac81457..74ccff2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,9 +11,11 @@ jobs: postgres: image: postgres:14 env: + POSTGRES_DB: pages_ahead_test + POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres options: >- - --health-cmd pg_isready + --health-cmd pg_isreadydb_test --health-interval 10s --health-timeout 5s --health-retries 5 @@ -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