.circleci/config.yml in omniauth-auth0-3.0.0 vs .circleci/config.yml in omniauth-auth0-3.1.0

- old
+ new

@@ -1,21 +1,25 @@ version: 2.1 +orbs: + ship: auth0/ship@0 + codecov: codecov/codecov@3 + matrix_rubyversions: &matrix_rubyversions matrix: parameters: - rubyversion: ["2.5", "2.6", "2.7", "3.0"] + rubyversion: ["2.7", "3.0", "3.1"] # Default version of ruby to use for lint and publishing default_rubyversion: &default_rubyversion "2.7" executors: ruby: parameters: rubyversion: type: string default: *default_rubyversion docker: - - image: circleci/ruby:<< parameters.rubyversion >> + - image: cimg/ruby:<< parameters.rubyversion >> jobs: run-tests: parameters: rubyversion: @@ -28,17 +32,32 @@ - checkout - restore_cache: keys: - gems-v2-{{ checksum "Gemfile" }} - gems-v2- - - run: bundle check || bundle install + - run: | + echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV + source $BASH_ENV + gem install bundler + bundle check || bundle install - save_cache: key: gems-v2--{{ checksum "Gemfile" }} paths: - vendor/bundle - run: bundle exec rake spec + - codecov/upload workflows: tests: jobs: - run-tests: <<: *matrix_rubyversions + - ship/ruby-publish: + context: + - publish-rubygems + - publish-gh + filters: + branches: + only: + - master + requires: + - run-tests