diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5863194..0bc0b97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,13 @@ jobs: - gemfiles/rails_7.0.gemfile - gemfiles/rails_7.1.gemfile - gemfiles/rails_7.2.gemfile + - gemfiles/rails_8.0.gemfile + exclude: + # Rails 8 requires Ruby 3.2 or newer + - ruby: 3.0 + gemfile: gemfiles/rails_8.0.gemfile + - ruby: 3.1 + gemfile: gemfiles/rails_8.0.gemfile env: BUNDLE_GEMFILE: "${{ matrix.gemfile }}" diff --git a/Appraisals b/Appraisals index 0dc6211..eeda0e7 100644 --- a/Appraisals +++ b/Appraisals @@ -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[6.0 6.1 7.0 7.1 7.2].each do |rails_version| +%w[6.0 6.1 7.0 7.1 7.2 8.0].each do |rails_version| appraise "rails_#{rails_version}" do current_version = rails_versions .select { |key| key.match(/\A#{rails_version}/) } diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 0000000..d9a1ad4 --- /dev/null +++ b/gemfiles/rails_8.0.gemfile @@ -0,0 +1,9 @@ +# This file was generated by Appraisal + +source 'https://rubygems.org' + +gem 'activerecord', '~> 8.0.0' +gem 'activesupport', '~> 8.0.0' +gem 'sqlite3' + +gemspec path: '../'