Skip to content

Commit

Permalink
Test against latest Rails version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascaton committed Oct 14, 2023
1 parent 9ecbe8a commit 4427933
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- gemfiles/rails_6.0.gemfile
- gemfiles/rails_6.1.gemfile
- gemfiles/rails_7.0.gemfile
- gemfiles/rails_7.1.gemfile
exclude:
# Rails < 6 does not support Ruby 3+:
# https://github.com/rails/rails/issues/40938#issuecomment-751357907
Expand All @@ -44,11 +45,13 @@ jobs:
- ruby: 3.2
gemfile: gemfiles/rails_5.2.gemfile

# Rails 7.0 requires Ruby 2.7+
# Rails 7.x requires Ruby 2.7+
- ruby: 2.5
gemfile: gemfiles/rails_7.0.gemfile
gemfile: gemfiles/rails_7.1.gemfile
- ruby: 2.6
gemfile: gemfiles/rails_7.0.gemfile
gemfile: gemfiles/rails_7.1.gemfile

env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
Expand Down
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'json'
rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versions/rails.json')))
.group_by { |version| version['number'] }.keys.grep_v(/rc|racecar|beta|pre/)

%w[5.0 5.1 5.2 6.0 6.1 7.0].each do |version|
%w[5.0 5.1 5.2 6.0 6.1 7.0 7.1].each do |version|
appraise "rails_#{version}" do
current_version = rails_versions
.select { |key| key.match(/\A#{version}/) }
Expand Down
9 changes: 9 additions & 0 deletions gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was generated by Appraisal

source 'https://rubygems.org'

gem 'activerecord', '~> 7.1.1'
gem 'activesupport', '~> 7.1.1'
gem 'sqlite3'

gemspec path: '../'

0 comments on commit 4427933

Please sign in to comment.