.circleci/config.yml in legion-exceptions-1.0.1 vs .circleci/config.yml in legion-exceptions-1.0.3

- old
+ new

@@ -1,13 +1,14 @@ version: 2.1 orbs: ruby: circleci/ruby@0.2.1 + sonarcloud: sonarsource/sonarcloud@1.0.1 jobs: "rubocop": docker: - - image: circleci/ruby:2.5-node + - image: circleci/ruby:2.7-node steps: - checkout - ruby/load-cache - ruby/install-deps - run: @@ -15,24 +16,28 @@ command: bundle exec rubocop - ruby/save-cache "ruby-two-five": docker: - image: circleci/ruby:2.5 - - image: memcached:1.5-alpine steps: - checkout - ruby/load-cache + - run: + name: update bundler + command: gem update bundler - ruby/install-deps - ruby/run-tests - ruby/save-cache "ruby-two-six": docker: - image: circleci/ruby:2.6 - - image: memcached:1.5-alpine steps: - checkout - ruby/load-cache + - run: + name: update bundler + command: gem update bundler - ruby/install-deps - ruby/run-tests - ruby/save-cache "ruby-two-seven": docker: @@ -42,10 +47,23 @@ - checkout - ruby/load-cache - ruby/install-deps - ruby/run-tests - ruby/save-cache + "sonarcloud": + docker: + - image: circleci/ruby:2.7 + steps: + - checkout + - ruby/load-cache + - ruby/install-deps + - ruby/run-tests + - run: + name: Run Rubocop + command: bundle exec rubocop --format=json --out=rubocop-result.json + - sonarcloud/scan + - ruby/save-cache workflows: version: 2 rubocop-rspec: jobs: @@ -56,6 +74,10 @@ - ruby-two-six: requires: - ruby-two-five - ruby-two-seven: requires: - - ruby-two-five + - ruby-two-five + - sonarcloud: + requires: + - ruby-two-seven + - ruby-two-six \ No newline at end of file