diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a48d3050..e31a964e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,17 +11,17 @@ jobs: ports: ['5432:5432'] options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 0s + --health-retries 20 redis: image: redis ports: ['6379:6379'] options: >- --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 0s + --health-retries 20 env: DATABASE_URL: postgresql://postgres:postgres@localhost:5432 @@ -53,7 +53,7 @@ jobs: - run: | sed '/if url = ENV.*DATABASE_URL.*/s/^/puts "XXX url=#{ENV["DATABASE_URL"].inspect}";/' -i vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.3/lib/active_record/connection_handling.rb; sed 's/def connect$/def connect; puts "XXX conn #{@connection_parameters.inspect}"/' -i vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.11.3/lib/active_record/connection_adapters/postgresql_adapter.rb - - run: bundle exec rake db:test:load + - run: bundle --version; bundle exec rake db:test:load - run: bundle exec rspec - uses: coverallsapp/github-action@v1