.circleci/config.yml in yamls-0.2.1 vs .circleci/config.yml in yamls-0.2.2

- old
+ new

@@ -68,10 +68,32 @@ command: cd example/rails6.0.0 && bundle exec rails db:migrate - run: name: Run test command: cd example/rails6.0.0 && bundle exec rake test + test_rails_demo: + docker: + - image: cimg/ruby:3.0.2-node + executor: ruby/default + steps: + - checkout + - run: + name: Install dependencies + command: sudo apt-get update -y && sudo apt-get install -y libsqlite3-dev + - run: + name: Which bundler? + command: bundle -v + - run: + name: Bundle install + command: cd example/rails-demo && bundle install --path vendor/bundle + - run: + name: Setup db + command: cd example/rails-demo && bundle exec rails db:migrate + - run: + name: Run test + command: cd example/rails-demo && bundle exec rake test + # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: build_and_test: # This is the name of the workflow, feel free to change it to better match your workflow. # Inside the workflow, you define the jobs you want to run. @@ -79,7 +101,10 @@ - build - test_rails5: requires: - build - test_rails6_0_0: + requires: + - build + - test_rails_demo: requires: - build