diff --git a/.github/workflows/rspec_push.yaml b/.github/workflows/rspec_push.yaml index d1db632..73ba781 100644 --- a/.github/workflows/rspec_push.yaml +++ b/.github/workflows/rspec_push.yaml @@ -22,6 +22,9 @@ jobs: redis: image: redis + ports: + - 6379:6379 + options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 steps: - name: Checkout code @@ -43,6 +46,7 @@ jobs: PGUSER: postgres PGPORT: ${{ job.services.postgres.ports[5432] }} # Access the PostgreSQL service port correctly PGPASSWORD: ${{ secrets.ROUTE_RATER_DATABASE_PASSWORD }} + REDIS_URL: redis://localhost:6379/1 RAILS_ENV: test run: | bin/rails db:create db:migrate db:schema:load