version: 2 jobs: build: docker: - image: circleci/ruby:2.7.0 environment: BUNDLE_PATH: vendor/bundle steps: - checkout - restore_cache: keys: - bitters-{{ arch }}-{{ checksum "bitters.gemspec" }} - run: name: Install Ruby dependencies command: bundle install - save_cache: key: bitters-{{ arch }}-{{ checksum "bitters.gemspec" }} paths: - vendor/bundle - run: name: Run the tests command: bundle exec rake