From 3487a4e8e795e9d3219e3d0bceb5ee47154e10b2 Mon Sep 17 00:00:00 2001 From: Adam Stegman Date: Thu, 4 Jan 2024 09:43:43 -0600 Subject: [PATCH] Add Rails to the matrix --- .circleci/config.yml | 8 ++++++++ Gemfile | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 363be1f..6167956 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,10 +8,14 @@ jobs: parameters: ruby-version: type: string + rails-version: + type: string executor: name: ruby/default tag: <> + environment: + RAILS_VERSION: <> steps: - checkout - ruby/install-deps: @@ -34,3 +38,7 @@ workflows: - "3.2.2" - "3.1.4" - "3.0.6" + rails-version: + - "~> 7.1.0" + - "~> 7.0.0" + - "~> 6.1.0" diff --git a/Gemfile b/Gemfile index fa75df1..d0d6560 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,8 @@ source 'https://rubygems.org' gemspec + +# Lock Rails down in the matrix build, but not by default +gem "activesupport", ENV.fetch("RAILS_VERSION", nil) +gem "activerecord", ENV.fetch("RAILS_VERSION", nil) +gem "railties", ENV.fetch("RAILS_VERSION", nil)