From 2399852ab12de7c5b84f67276e0dd23aec7fecb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 11 Dec 2024 15:17:30 +0100 Subject: [PATCH] Add Rails 7.2 and 8.0 into test matrix. --- .github/workflows/ruby.yml | 14 +++++++++++++- gemfiles/Gemfile.rails-7.2.x | 14 ++++++++++++++ gemfiles/Gemfile.rails-8.0.x | 14 ++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 gemfiles/Gemfile.rails-7.2.x create mode 100644 gemfiles/Gemfile.rails-8.0.x diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index dfd75647..6781b5c1 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -24,17 +24,29 @@ jobs: - gemfiles/Gemfile.rails-6.1.x - gemfiles/Gemfile.rails-7.0.x - gemfiles/Gemfile.rails-7.1.x + - gemfiles/Gemfile.rails-7.2.x + - gemfiles/Gemfile.rails-8.0.x - gemfiles/Gemfile.rails-main exclude: - # Rails main requires at least Ruby 3.2 + # Rails 8+ requires at least Ruby 3.2 - ruby_version: '3.1' gemfile: gemfiles/Gemfile.rails-main - ruby_version: '3.0' gemfile: gemfiles/Gemfile.rails-main + - ruby_version: '3.1' + gemfile: gemfiles/Gemfile.rails-8.0.x + - ruby_version: '3.0' + gemfile: gemfiles/Gemfile.rails-8.0.x + # Rails 7.2.x requires at least Ruby 3.1 + - ruby_version: '3.0' + gemfile: gemfiles/Gemfile.rails-7.2.x # JRuby is not supported by Rails 7.0.x - ruby_version: jruby gemfile: gemfiles/Gemfile.rails-7.0.x # JRuby is not supported by Rails main + - ruby_version: jruby + gemfile: gemfiles/Gemfile.rails-8.0.x + # JRuby is not supported by Rails main - ruby_version: jruby gemfile: gemfiles/Gemfile.rails-main diff --git a/gemfiles/Gemfile.rails-7.2.x b/gemfiles/Gemfile.rails-7.2.x new file mode 100644 index 00000000..a4a00efe --- /dev/null +++ b/gemfiles/Gemfile.rails-7.2.x @@ -0,0 +1,14 @@ +source 'https://rubygems.org' + +gemspec :path => '..' + +gem 'activesupport', '~> 7.2' +gem 'mocha', '~> 2' +gem 'test_declarative', '0.0.6' +gem 'rake' +gem 'minitest', '~> 5.1' +gem 'racc' + +platforms :mri do + gem 'oj' +end diff --git a/gemfiles/Gemfile.rails-8.0.x b/gemfiles/Gemfile.rails-8.0.x new file mode 100644 index 00000000..16d4dba4 --- /dev/null +++ b/gemfiles/Gemfile.rails-8.0.x @@ -0,0 +1,14 @@ +source 'https://rubygems.org' + +gemspec :path => '..' + +gem 'activesupport', '~> 8.0' +gem 'mocha', '~> 2' +gem 'test_declarative', '0.0.6' +gem 'rake' +gem 'minitest', '~> 5.1' +gem 'racc' + +platforms :mri do + gem 'oj' +end