From 548cfaf965c0131fc8983afbd1b661da01960b75 Mon Sep 17 00:00:00 2001 From: djezzzl Date: Tue, 24 Dec 2024 09:53:00 +0100 Subject: [PATCH] Add rails 8 to tests --- .github/workflows/tests.yml | 2 ++ .gitignore | 1 + Appraisals | 2 +- gemfiles/ar_8_0.gemfile | 10 ++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 gemfiles/ar_8_0.gemfile diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a406c5..4fb63b9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,6 +54,8 @@ jobs: gemfile: 'gemfiles/ar_7_0.gemfile' - ruby-version: '3.2' gemfile: 'gemfiles/ar_7_1.gemfile' + - ruby-version: '3.2' + gemfile: 'gemfiles/ar_8_0.gemfile' - ruby-version: 'head' gemfile: 'gemfiles/ar_main.gemfile' diff --git a/.gitignore b/.gitignore index d1898aa..1694acb 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ # Ruby Version .ruby-version .ruby-gemset +.tool-versions # Rails Examples /rails*-example/db/*.sqlite3 diff --git a/Appraisals b/Appraisals index 76e722b..00e4b5f 100644 --- a/Appraisals +++ b/Appraisals @@ -17,7 +17,7 @@ appraise 'ar_4_2' do gem 'sqlite3', '~> 1.3.9' end -%w[5.2 6.0 6.1 7.0 7.1].each do |version| +%w[5.2 6.0 6.1 7.0 7.1 8.0].each do |version| appraise "ar_#{version.gsub('.', '_')}" do remove_gem 'appraisal' gem 'activerecord', "~> #{version}.0" diff --git a/gemfiles/ar_8_0.gemfile b/gemfiles/ar_8_0.gemfile new file mode 100644 index 0000000..6e046df --- /dev/null +++ b/gemfiles/ar_8_0.gemfile @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'activerecord', '~> 8.0.0' +gem 'mysql2', '~> 0.5' +gem 'pg', '>= 0.2' +gem 'sqlite3', '~> 1.3' + +gemspec path: '../'