Skip to content

Commit

Permalink
[CI] Add newer Ruby and Rails versions (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
markets authored Jan 30, 2025
1 parent 97640fd commit 939f9ed
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 9 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
Expand All @@ -11,18 +15,22 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
gemfile: [rails_6.0, rails_6.1, rails_7.0, rails_7.1]
ruby: ["3.4", "3.3", "3.2", "3.1"]
gemfile: [rails_8.0, rails_7.2, rails_7.1, rails_7.0, rails_6.1]
exclude:
- ruby: "3.1"
gemfile: rails_6.0
- ruby: "3.2"
gemfile: rails_6.0
gemfile: rails_8.0
- ruby: "3.4"
gemfile: rails_7.0
- ruby: "3.4"
gemfile: rails_6.1
include:
- ruby: "2.7"
gemfile: rails_5.2
- ruby: "3.0"
gemfile: rails_6.0
- ruby: head
gemfile: rails_7.0
gemfile: rails_8.0
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
4 changes: 3 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
%w(
8.0
7.2
7.1
7.0
6.1
Expand All @@ -8,7 +10,7 @@
appraise "rails-#{version}" do
gem "rails", "~> #{version}.0"

# NOTE: concurrent-ruby gem no longer loads the logger gem since v1.3.5.
# NOTE: The gem concurrent-ruby no longer loads the logger gem since v1.3.5.
# More info: https://github.com/rails/rails/pull/54264
gem "concurrent-ruby", "< 1.3.5"
end
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ $ bundle exec appraisal rspec
Run specs against specific version:

```
$ bundle exec appraisal rails-6.0 rspec
$ bundle exec appraisal rails-7.0 rspec
```

### Demo
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 7.2.0"
gem "concurrent-ruby", "< 1.3.5"

gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 8.0.0"
gem "concurrent-ruby", "< 1.3.5"

gemspec path: "../"

0 comments on commit 939f9ed

Please sign in to comment.