.circleci/config.yml in yamls-0.1.1 vs .circleci/config.yml in yamls-0.1.2
- old
+ new
@@ -24,13 +24,38 @@
name: Run linter
command: bundle exec rubocop
- run:
name: Run rspec
command: bundle exec rspec
+ test_rails5:
+ docker:
+ - image: cimg/ruby:2.7.4-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/rails5 && bundle install --path vendor/bundle
+ - run:
+ name: Setup db
+ command: cd example/rails5 && bundle exec rails db:migrate
+ - run:
+ name: Run test
+ command: cd example/rails5 && bundle exec rake test
+
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
- sample: # This is the name of the workflow, feel free to change it to better match your workflow.
+ 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.
jobs:
- build
+ - test_rails5:
+ requires:
+ - build