Skip to content

Commit

Permalink
Add Ruby head
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstegman committed Jan 4, 2024
1 parent 3487a4e commit ac2c8e0
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,44 @@ jobs:
# Always install the latest versions available
with-cache: false
- ruby/rspec-test
test-ruby-head:
parameters:
rails-version:
type: string
docker:
- image: cimg/base:stable
environment:
RAILS_VERSION: <<parameters.rails-version>>
steps:
- checkout
- ruby/install:
# RVM wants Ruby 2 for some reason to install Ruby head.
# But then it will use 2.7.8 by default in the future;
# we must use `rvm use ruby-head` before every command that matters
version: "2.7.8"
- ruby/install:
version: ruby-head
- restore_cache:
keys:
- v1-{{ arch }}-ruby-head-bundler
- run:
name: Install Ruby dependencies
command: |
rvm use ruby-head
ruby --version
gem install bundler:\>2
bundle config set path bundle
bundle update
- save_cache:
key: v1-{{ arch }}-ruby-head-bundler
paths:
- ./bundle
- run:
name: RSpec tests
command: |
rvm use ruby-head
ruby --version
bundle exec rspec
workflows:
test:
Expand All @@ -42,3 +80,10 @@ workflows:
- "~> 7.1.0"
- "~> 7.0.0"
- "~> 6.1.0"
- test-ruby-head:
matrix:
parameters:
rails-version:
- "~> 7.1.0"
- "~> 7.0.0"
- "~> 6.1.0"

0 comments on commit ac2c8e0

Please sign in to comment.