--- image: ruby:3.1 stages: - prepare - test bundle: stage: prepare script: - ruby --version - bundle install --path='vendor/bundle' --frozen artifacts: untracked: true expire_in: 1 hour paths: - 'vendor/' cache: untracked: true paths: - 'vendor/' rubocop: stage: test script: - bundle install --path='vendor/bundle' --frozen - bundle exec rubocop dependencies: - bundle rspec: stage: test script: - bundle install --path='vendor/bundle' --frozen - bundle exec rspec dependencies: - bundle dummy: stage: test script: - cd dummy - bundle install --path='vendor/bundle' --frozen - bundle exec rubocop - bundle exec rspec