.circleci/config.yml in br_danfe-0.17.0 vs .circleci/config.yml in br_danfe-0.17.1

- old
+ new

@@ -1,31 +1,40 @@ version: 2 jobs: build: docker: - - image: circleci/ruby:2.5.1 + - image: circleci/ruby:2.7.4 steps: - checkout - restore_cache: - key: brdanfe-cache-v1-{{ checksum "Gemfile.lock" }} + key: brdanfe-cache-v2-{{ checksum "Gemfile.lock" }} - run: bundle check || bundle install - save_cache: - key: brdanfe-cache-v1-{{ .Environment.CIRCLE_SHA1 }} + key: brdanfe-cache-v2-{{ .Environment.CIRCLE_SHA1 }} paths: - . - save_cache: - key: brdanfe-cache-v1-{{ checksum "Gemfile.lock" }} + key: brdanfe-cache-v2-{{ checksum "Gemfile.lock" }} paths: - ./vendor/bundle + linter: + docker: + - image: circleci/ruby:2.7.4 + steps: + - restore_cache: + key: brdanfe-cache-v2-{{ .Environment.CIRCLE_SHA1 }} + - restore_cache: + key: brdanfe-cache-v2-{{ checksum "Gemfile.lock" }} + - run: bundle exec rubocop --display-cop-names --parallel rspec: docker: - - image: circleci/ruby:2.5.1 + - image: circleci/ruby:2.7.4 steps: - restore_cache: - key: brdanfe-cache-v1-{{ .Environment.CIRCLE_SHA1 }} + key: brdanfe-cache-v2-{{ .Environment.CIRCLE_SHA1 }} - restore_cache: - key: brdanfe-cache-v1-{{ checksum "Gemfile.lock" }} + key: brdanfe-cache-v2-{{ checksum "Gemfile.lock" }} - run: name: Install Test Coverage for CodeClimate command: | curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter chmod +x ./cc-test-reporter @@ -35,8 +44,11 @@ workflows: version: 2 main: jobs: - build - - rspec: + - linter: requires: - build + - rspec: + requires: + - linter