Skip to content

Commit

Permalink
Test against Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jan 2, 2024
1 parent 57e372c commit 029b61f
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ jobs:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2', '3.3' ]
rails: [ '5-2', '6-0', '6-1', '7-0' ]
rails: [ '5-2', '6-0', '6-1', '7-0', '7-1' ]
# excludes are sorted by Ruby version, then Rails version
exclude:
- ruby: 2.6 # Rails 7 requires 2.7 minimum
rails: 7-0
- ruby: 2.6 # Rails 7.1 requires 2.7 minimum
rails: 7-1
- ruby: 3.0 # Ruby 3 support for 5.2 hasn't been added
rails: 5-2
- ruby: 3.1 # Ruby 3.1 only works on the latest Rails 7 version
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.9
2.7.8
24 changes: 16 additions & 8 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
appraise "rails-5-2" do
gem "activesupport", "~> 5.2"
gem "activesupport", "~> 5.2.0"

group :development, :test do
gem "actionpack", "~> 5.2"
gem "actionpack", "~> 5.2.0"
end
end

appraise "rails-6-0" do
gem "activesupport", "~> 6.0"
gem "activesupport", "~> 6.0.0"

group :development, :test do
gem "actionpack", "~> 6.0"
gem "actionpack", "~> 6.0.0"
end
end

appraise "rails-6-1" do
gem "activesupport", "~> 6.1"
gem "activesupport", "~> 6.1.0"

group :development, :test do
gem "actionpack", "~> 6.1"
gem "actionpack", "~> 6.1.0"
end
end

appraise "rails-7-0" do
gem "activesupport", "~> 7.0"
gem "activesupport", "~> 7.0.0"

group :development, :test do
gem "actionpack", "~> 7.0"
gem "actionpack", "~> 7.0.0"
end
end

appraise "rails-7-1" do
gem "activesupport", "~> 7.1.0"

group :development, :test do
gem "actionpack", "~> 7.1.0"
end
end
4 changes: 2 additions & 2 deletions gemfiles/rails_5_2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
source "http://rubygems.org"

gem "simplecov", group: :test, require: nil
gem "activesupport", "~> 5.2"
gem "activesupport", "~> 5.2.0"

group :development, :test do
gem "actionpack", "~> 5.2"
gem "actionpack", "~> 5.2.0"
end

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/rails_6_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
source "http://rubygems.org"

gem "simplecov", group: :test, require: nil
gem "activesupport", "~> 6.0"
gem "activesupport", "~> 6.0.0"

group :development, :test do
gem "actionpack", "~> 6.0"
gem "actionpack", "~> 6.0.0"
end

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
source "http://rubygems.org"

gem "simplecov", group: :test, require: nil
gem "activesupport", "~> 6.1"
gem "activesupport", "~> 6.1.0"

group :development, :test do
gem "actionpack", "~> 6.1"
gem "actionpack", "~> 6.1.0"
end

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/rails_7_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
source "http://rubygems.org"

gem "simplecov", group: :test, require: nil
gem "activesupport", "~> 7.0"
gem "activesupport", "~> 7.0.0"

group :development, :test do
gem "actionpack", "~> 7.0"
gem "actionpack", "~> 7.0.0"
end

gemspec path: "../"
12 changes: 12 additions & 0 deletions gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "simplecov", group: :test, require: nil
gem "activesupport", "~> 7.1.0"

group :development, :test do
gem "actionpack", "~> 7.1.0"
end

gemspec path: "../"

0 comments on commit 029b61f

Please sign in to comment.