Skip to content

Commit

Permalink
Run tests on Rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgi committed Oct 28, 2024
1 parent 51403c0 commit ce869a7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions spec/gemfiles/Gemfile-rails-7.2
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ce869a7

Please sign in to comment.