anchor.diff:      docker:
         - image: *ruby-image
           environment: *env-vars
  +      <% if selected?(:database, :postgresql) %>
         - image: *postgres-image
  +      <% end %>
  +      <% if selected?(:background_processor) %>
         - image: *redis-image
  +      <% end %>
   
     lint-executor:
       docker:
  
positive.code:       - run:
            name: Run jest
            command: yarn run test
  
      <% end %>
        - store_test_results:
            path: test_results
  
  
negative.code: version: 2.1
  
  ruby-image: &ruby-image circleci/ruby:<%= ruby_version %>
  <% if selected?(:database, :postgresql) %>
  postgres-image: &postgres-image postgres:<%= Potassium::POSTGRES_VERSION %>
  <% end %>
  <% if selected?(:background_processor) %>
  redis-image: &redis-image redis
  <% end %>
  env-vars: &env-vars
    BUNDLE_JOBS: 4
    BUNDLE_PATH: vendor/bundle
  