anchor.diff:      docker:
         - image: *ruby-image
           environment: *env-vars
  -      <% if selected?(:database, :postgresql) %>
  +      <%- if selected?(:database, :postgresql) -%>
         - image: *postgres-image
  -      <% end %>
  -      <% if selected?(:background_processor) %>
  +      <%- end -%>
  +      <%- if selected?(:background_processor) -%>
         - image: *redis-image
  -      <% end %>
  +      <%- end -%>
   
     lint-executor:
       docker:
  
positive.code:     steps:
        - setup
  
        <% if selected?(:database, :postgresql) %>
        - run:
            name: Wait for postgres service
            command: dockerize -wait tcp://localhost:5432 -timeout 1m
        <% end %>
  
        <% if selected?(:background_processor) %>
        - run:
            name: Wait for redis service
            command: dockerize -wait tcp://localhost:6379 -timeout 1m
        <% end %>
  
        <% if selected?(:database, :postgresql) %>
        - run:
            name: Setup database
            command: bundle exec rails db:create db:schema:load
        <% end %>
  
        - run:
            name: Run rspec
  
negative.code:             RSPEC_FORMAT_ARGS="-f progress --no-color -p 10"
              bundle exec rspec spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
  
        <%- if selected?(:front_end, :vue) -%>
        - run:
            name: Run jest
            command: yarn run test
        <%- end -%>
  
        - store_test_results:
            path: test_results
  