.circleci/config.yml
version: 2.1
orbs:
# https://circleci.com/developer/orbs/orb/circleci/ruby?version=1.4.0
ruby: circleci/ruby@1.4.0
jobs:
build:
docker:
- image: 'cimg/ruby:3.1.1'
steps:
- checkout
- restore_cache:
name: Restore bundle cache
keys:
- bundle-3.1
- run:
name: Bundle Install
command: |
bundle config set --local path 'vendor/bundle'
bundle install --jobs=4 --retry=3
- save_cache:
name: Store bundle cache
key: bundle-3.1
paths:
- vendor/bundle
- ruby/rspec-test
workflows:
build_and_test:
jobs:
- build