version: 2.1 orbs: samvera: samvera/circleci-orb@1.0 jobs: bundle_lint_test: parameters: ruby_version: type: string project: type: string bundler_version: type: string default: 2.3.11 executor: name: 'samvera/ruby' ruby_version: << parameters.ruby_version >> steps: - checkout - run: name: Check for 'master' branch command: | git fetch --all --quiet --prune --prune-tags if [[ -n "$(git branch --all --list master */master)" ]]; then echo "A branch named 'master' was found. Please remove it." echo "$(git branch --all --list master */master)" fi [[ -z "$(git branch --all --list master */master)" ]] - samvera/cached_checkout - samvera/bundle: ruby_version: << parameters.ruby_version >> bundler_version: << parameters.bundler_version >> - samvera/rubocop workflows: version: 2 ci: jobs: - bundle_lint_test: project: bixby name: ruby3-1 ruby_version: 3.1.1 - bundle_lint_test: project: bixby name: ruby3-0 ruby_version: 3.0.3 - bundle_lint_test: project: bixby name: ruby2-7 ruby_version: 2.7.5 - bundle_lint_test: project: bixby name: ruby2-6 ruby_version: 2.6.9 - bundle_lint_test: project: bixby name: ruby2-5 ruby_version: 2.5.9 nightly: triggers: - schedule: cron: "0 0 * * *" filters: branches: only: - main jobs: - bundle_lint_test: project: bixby name: ruby3-1 ruby_version: 3.1.1 - bundle_lint_test: project: bixby name: ruby3-0 ruby_version: 3.0.3 - bundle_lint_test: project: bixby name: ruby2-7 ruby_version: 2.7.5 - bundle_lint_test: project: bixby name: ruby2-6 ruby_version: 2.6.9 - bundle_lint_test: project: bixby name: ruby2-5 ruby_version: 2.5.9