Skip to content

Commit c17c161

Browse files
Add latest Ruby and Rails versions to the build (#529)
* Add latest Ruby and Rails versions to the build The Rails versions had been added to the Appraisals file in previous PRs, but GitHub Actions didn't run with them because the `build.yml` file hadn't been changed. * Add `drb` gem to Rails 6.1 and 7.0 The `drb` gem is not a default gem on Ruby 3.4 anymore, so it needs to be on the Gemfile. Rails 7.1 and above already include it as a dependency.
1 parent 2e30e17 commit c17c161

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/build.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
rails: ["7.1", "7.0", "6.1"]
14-
ruby: ["3.3", "3.2", "3.1"]
13+
rails: ["8.0", "7.2", "7.1", "7.0", "6.1"]
14+
ruby: ["3.4", "3.3", "3.2", "3.1"]
1515
exclude:
16+
# Rails >= 8.0 requires Ruby 3.2
1617
- ruby: "3.1"
17-
rails: "7.1"
18+
rails: "8.0"
19+
1820

1921
runs-on: 'ubuntu-latest'
2022

@@ -41,7 +43,7 @@ jobs:
4143
- uses: actions/checkout@v4
4244
- uses: ruby/setup-ruby@v1
4345
with:
44-
ruby-version: "3.3"
46+
ruby-version: "3.4"
4547
- name: Setup project
4648
run: bundle install
4749
- name: Run test

Appraisals

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
appraise "rails6.1" do
22
gem "byebug"
3+
gem "concurrent-ruby", "< 1.3.5"
4+
gem "drb"
35
gem "listen", "~> 3.2"
46
gem "puma", "~> 5.0"
57
gem "rails", "~> 6.1.0", ">= 6.1.0.0"
68
gem "spring", "!= 2.1.1"
79
gem "spring-watcher-listen", "~> 2.0.0"
810
gem "sqlite3", "~> 1.4"
9-
gem "concurrent-ruby", "< 1.3.5"
1011
end
1112

1213
appraise "rails7.0" do
1314
gem "byebug"
15+
gem "concurrent-ruby", "< 1.3.5"
16+
gem "drb"
1417
gem "listen", "~> 3.2"
1518
gem "puma", "~> 5.0"
1619
gem "rails", "~> 7.0.1", ">= 7.0.1"
1720
gem "spring", "!= 2.1.1"
1821
gem "spring-watcher-listen", "~> 2.0.0"
1922
gem "sqlite3", "~> 1.4"
20-
gem "concurrent-ruby", "< 1.3.5"
2123
end
2224

2325
appraise "rails7.1" do

gemfiles/rails6.1.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ gem "rake"
99
gem "rspec-rails"
1010
gem "standard"
1111
gem "byebug"
12+
gem "concurrent-ruby", "< 1.3.5"
13+
gem "drb"
1214
gem "listen", "~> 3.2"
1315
gem "puma", "~> 5.0"
1416
gem "rails", "~> 6.1.0", ">= 6.1.0.0"
1517
gem "spring", "!= 2.1.1"
1618
gem "spring-watcher-listen", "~> 2.0.0"
1719
gem "sqlite3", "~> 1.4"
18-
gem "concurrent-ruby", "< 1.3.5"
1920

2021
gemspec name: "factory_bot_rails", path: "../"

gemfiles/rails7.0.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ gem "rake"
99
gem "rspec-rails"
1010
gem "standard"
1111
gem "byebug"
12+
gem "concurrent-ruby", "< 1.3.5"
13+
gem "drb"
1214
gem "listen", "~> 3.2"
1315
gem "puma", "~> 5.0"
1416
gem "rails", "~> 7.0.1", ">= 7.0.1"
1517
gem "spring", "!= 2.1.1"
1618
gem "spring-watcher-listen", "~> 2.0.0"
1719
gem "sqlite3", "~> 1.4"
18-
gem "concurrent-ruby", "< 1.3.5"
1920

2021
gemspec name: "factory_bot_rails", path: "../"

0 commit comments

Comments
 (0)