From ce869a72151890582a0fcfbe3e2f65cffc45e6d6 Mon Sep 17 00:00:00 2001 From: Tomasz Gieniusz Date: Mon, 28 Oct 2024 12:44:50 +1100 Subject: [PATCH] Run tests on Rails 7.2 --- .github/workflows/tests.yml | 20 ++++++++++++-------- Gemfile | 4 ++-- spec/gemfiles/Gemfile-rails-7.2 | 23 +++++++++++++++++++++++ 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 spec/gemfiles/Gemfile-rails-7.2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77965ddc..1842dce3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,17 +8,21 @@ jobs: strategy: matrix: ruby_version: ['2.7', '3.0', '3.1', '3.2'] - rails_gemfile: ['6.0', '6.1', '7.0', '7.1'] + rails_gemfile: ['6.0', '6.1', '7.0', '7.1', '7.2'] postgres_version: ['14'] include: # Postgres versions - - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '9' } - - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '10' } - - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '11' } - - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '12' } - - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '13' } - - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '14' } - exclude: [] + - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '9' } + - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '10' } + - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '11' } + - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '12' } + - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '13' } + - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '14' } + exclude: # Rails 7.2 is not compatible with Ruby < 3.1 + - ruby_version: '2.7' + rails_gemfile: '7.2' + - ruby_version: '3.0' + rails_gemfile: '7.2' name: "Test: Ruby ${{ matrix.ruby_version }}, Rails ${{ matrix.rails_gemfile }}, PostgreSQL ${{ matrix.postgres_version }}" services: db: diff --git a/Gemfile b/Gemfile index 7b048d5f..eeec1ae1 100644 --- a/Gemfile +++ b/Gemfile @@ -6,8 +6,8 @@ source 'https://rubygems.org' group :development, :test do gem 'rake' - gem 'activerecord', '~> 7.1.0', require: nil - gem 'activejob', '~> 7.1.0', require: nil + gem 'activerecord', '~> 7.2.0', require: nil + gem 'activejob', '~> 7.2.0', require: nil gem 'sequel', require: nil gem 'connection_pool', require: nil gem 'pond', require: nil diff --git a/spec/gemfiles/Gemfile-rails-7.2 b/spec/gemfiles/Gemfile-rails-7.2 new file mode 100644 index 00000000..1caa4180 --- /dev/null +++ b/spec/gemfiles/Gemfile-rails-7.2 @@ -0,0 +1,23 @@ +source 'https://rubygems.org' + +gem 'que', path: '../..' + +group :development, :test do + gem 'rake' + + gem 'activerecord', '~> 7.2.0', require: nil + gem 'activejob', '~> 7.2.0', require: nil + gem 'sequel', require: nil + gem 'connection_pool', require: nil + gem 'pond', require: nil + gem 'pg', require: nil, platform: :ruby + gem 'pg_jruby', require: nil, platform: :jruby +end + +group :test do + gem 'minitest', '~> 5.10.1' + gem 'minitest-profile', '0.0.2' + gem 'minitest-hooks', '1.4.0' + gem 'pry' + gem 'pg_examiner', '~> 0.5.2' +end