From b5084628999ec727264eeab7a1fa4e443db4d2f2 Mon Sep 17 00:00:00 2001 From: Lucas Caton Date: Sun, 1 Dec 2024 10:30:38 +1000 Subject: [PATCH] Test against Rails 8.0 --- .github/workflows/ci.yml | 1 + Appraisals | 2 +- gemfiles/rails_8.0.gemfile | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 gemfiles/rails_8.0.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5863194..3b06a76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ jobs: - gemfiles/rails_7.0.gemfile - gemfiles/rails_7.1.gemfile - gemfiles/rails_7.2.gemfile + - gemfiles/rails_8.0.gemfile env: BUNDLE_GEMFILE: "${{ matrix.gemfile }}" diff --git a/Appraisals b/Appraisals index 0082da9..b2af8b9 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..829bac5 --- /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', '< 2' + +gemspec path: '../'