Skip to content

Commit

Permalink
ci: Update matrix for latest Ruby and Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Jan 18, 2024
1 parent c1d58fe commit a2e4c29
Show file tree
Hide file tree
Showing 14 changed files with 461 additions and 355 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ jobs:
strategy:
matrix:
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
activerecord:
- 6.0.0
- 6.1.0
- 7.0.0
- 7.1.0
strategy:
- array
- ltree
Expand All @@ -37,7 +38,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inherit_mode:

AllCops:
NewCops: enable
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0
Exclude:
- gemfiles/**

Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.0.3
ruby 3.3.0
16 changes: 4 additions & 12 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
appraise 'activerecord-5.1.5' do
gem 'activerecord', '~> 5.1', '< 5.2'
end

appraise 'activerecord-5.2.0' do
gem 'activerecord', '~> 5.2', '< 6'
end

appraise 'activerecord-6.0.0' do
gem 'activerecord', '~> 6.0', '< 6.1'
end

appraise 'activerecord-6.1.0' do
gem 'activerecord', '~> 6.1', '< 6.2'
end

appraise 'activerecord-7.0.0' do
gem 'activerecord', '~> 7.0', '< 7.1'
end

appraise 'activerecord-7.1.0' do
gem 'activerecord', '~> 7.1', '< 7.2'
end
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ source 'https://rubygems.org'
gemspec

gem 'appraisal'
gem 'bundler', '~> 2'
gem 'combustion', '~> 1.4'
gem 'database_cleaner', '~> 2'
gem 'pg', '~> 1.5'
gem 'pry', '~> 0.13'
gem 'rake', '~> 13'
gem 'rspec-rails', '~> 6.1'
gem 'rubocop-rspec', '~> 2'
gem 'simplecov', '~> 0.20'
8 changes: 0 additions & 8 deletions gemfiles/activerecord_6.0.0.gemfile

This file was deleted.

152 changes: 0 additions & 152 deletions gemfiles/activerecord_6.0.0.gemfile.lock

This file was deleted.

9 changes: 9 additions & 0 deletions gemfiles/activerecord_6.1.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
source "https://rubygems.org"

gem "appraisal"
gem "bundler", "~> 2"
gem "combustion", "~> 1.4"
gem "database_cleaner", "~> 2"
gem "pg", "~> 1.5"
gem "pry", "~> 0.13"
gem "rake", "~> 13"
gem "rspec-rails", "~> 6.1"
gem "rubocop-rspec", "~> 2"
gem "simplecov", "~> 0.20"
gem "activerecord", "~> 6.1", "< 6.2"

gemspec path: "../"
Loading

0 comments on commit a2e4c29

Please sign in to comment.