Skip to content

Commit

Permalink
chore: Bump tests to Ruby 3.0+ and Rails 6.1+
Browse files Browse the repository at this point in the history
* Remove unsupported Ruby and Rails versions
* Add Ruby 3.1, 3.2, 3.2
* Add Rails 7.1
  • Loading branch information
jgraichen committed Apr 18, 2024
1 parent f7baf1e commit d3d6094
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 42 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@ jobs:
strategy:
matrix:
ruby:
- "3.3"
- "3.2"
- "3.1"
- "3.0"
- "2.7"
- "2.6"
- "2.5"
gemfile:
- rails_5_2.gemfile
- rails_6_0.gemfile
- rails_6_1.gemfile
- rails_7_0.gemfile
exclude:
- ruby: "3.0"
gemfile: rails_5_2.gemfile
- ruby: "2.5"
gemfile: rails_7_0.gemfile
- ruby: "2.6"
gemfile: rails_7_0.gemfile
- rails_7_1.gemfile
fail-fast: False

env:
Expand Down Expand Up @@ -60,7 +52,7 @@ jobs:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
ruby-version: "3.3"
bundler-cache: True

- run: bundle exec rubocop --parallel --color
11 changes: 4 additions & 7 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
appraise "rails-5-2" do
gem 'rails', '~> 5.2.0'
end

appraise "rails-6-0" do
gem 'rails', '~> 6.0.0'
end

appraise "rails-6-1" do
gem 'rails', '~> 6.1.0'
Expand All @@ -14,6 +7,10 @@ appraise "rails-7-0" do
gem 'rails', '~> 7.0.0'
end

appraise "rails-7-1" do
gem 'rails', '~> 7.1.0'
end

appraise "rails-head" do
gem 'rails', github: 'rails/rails'
end
21 changes: 0 additions & 21 deletions gemfiles/rails_6_0.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion gemfiles/rails_5_2.gemfile → gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem "sqlite3", "~> 2.0"
gem "rspec"
gem "rspec-rails"
gem "my-rubocop", github: "jgraichen/my-rubocop", ref: "v3"
gem "rails", "~> 5.2.0"
gem "rails", "~> 7.1.0"

group :development do
gem "appraisal"
Expand Down

0 comments on commit d3d6094

Please sign in to comment.