version: 2 jobs: build: docker: - image: circleci/ruby:2.4.3-node steps: - checkout - restore_cache: keys: - oneaccess-rb-bundle-v1-{{ checksum "Gemfile.lock" }} - run: name: Install Dependencies command: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 - save_cache: key: oneaccess-rb-bundle-v1-{{ checksum "Gemfile.lock" }} paths: - vendor/bundle - run: name: Linting command: bundle exec rubocop - run: name: Test command: bundle exec rspec