Skip to content

Commit

Permalink
Add Rails 7 to tests (#2132)
Browse files Browse the repository at this point in the history
And refactor ".circleci/config" a bit.

With all the current variations & limitations it's probably better to just list
the supported configurations explicitly rather than trying to share config
blocks.
  • Loading branch information
jordan-brough authored Jan 26, 2022
1 parent e997c09 commit 1a6e0fc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ commands:

default_job: &default_job
working_directory: ~/administrate
steps:
- shared_steps
# Run the tests against multiple versions of Rails
- run: bundle exec appraisal install
- run: bundle exec appraisal rspec

jobs:
ruby-26:
<<: *default_job
steps:
- shared_steps
# Run the tests against the versions of Rails that support Ruby 2.6
- run: bundle exec appraisal install
- run: bundle exec appraisal rails50 rspec
- run: bundle exec appraisal rails51 rspec
- run: bundle exec appraisal rails52 rspec
- run: bundle exec appraisal rails60 rspec
- run: bundle exec appraisal rails61 rspec
docker:
- image: circleci/ruby:2.6.3
environment:
Expand All @@ -70,6 +74,16 @@ jobs:

ruby-27:
<<: *default_job
steps:
- shared_steps
# Run the tests against the versions of Rails that support Ruby 2.7
- run: bundle exec appraisal install
- run: bundle exec appraisal rails50 rspec
- run: bundle exec appraisal rails51 rspec
- run: bundle exec appraisal rails52 rspec
- run: bundle exec appraisal rails60 rspec
- run: bundle exec appraisal rails61 rspec
- run: bundle exec appraisal rails70 rspec
docker:
- image: circleci/ruby:2.7
environment:
Expand All @@ -90,6 +104,7 @@ jobs:
- run: bundle exec appraisal install
- run: bundle exec appraisal rails60 rspec
- run: bundle exec appraisal rails61 rspec
- run: bundle exec appraisal rails70 rspec
docker:
- image: circleci/ruby:3.0
environment:
Expand All @@ -109,6 +124,7 @@ jobs:
# Run the tests against the versions of Rails that support Ruby 3.1
- run: bundle exec appraisal install
- run: bundle exec appraisal rails61 rspec
- run: bundle exec appraisal rails70 rspec
docker:
- image: cimg/ruby:3.1-browsers
environment:
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ end
appraise "rails61" do
gem "rails", "~> 6.1"
end

appraise "rails70" do
gem "rails", "~> 6.1"
end

0 comments on commit 1a6e0fc

Please sign in to comment.