Skip to content

Commit

Permalink
chore: add Rails 8 beta to CI (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuap authored Oct 9, 2024
1 parent d6f76f7 commit e5ffc31
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- rails7.0.gemfile
- rails7.1.gemfile
- rails7.2.gemfile
- rails8.gemfile
- resque.gemfile
- sinatra.gemfile
- sidekiq.gemfile
Expand All @@ -36,6 +37,10 @@ jobs:
exclude:
- ruby: '3.0'
gemfile: rails7.2.gemfile
- ruby: '3.0'
gemfile: rails8.gemfile
- ruby: '3.1'
gemfile: rails8.gemfile

# Has to be top level to cache properly
env:
Expand Down
12 changes: 11 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,22 @@ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.5.0")
gem "tzinfo-data" # Needed for timezones to work on Windows
end

appraise "rails8" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, "~> 8.0.0.beta1" }
gem "sqlite3", "~> 2", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 70", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "tzinfo-data" # Needed for timezones to work on Windows
end

# Rails edge
appraise "rails" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, github: "rails" }
gem "rack", github: "rack/rack", branch: "2-2-stable" # Rack"s main branch is Rack 3, but ActionPack currently requires Rack 2
gem "arel", github: "rails/arel"
gem "sqlite3", "~> 1.4", platforms: :mri
gem "sqlite3", "~> 2", platforms: :mri
gem "capistrano", "~> 3.0"
gem "better_errors", require: false, platforms: :mri
gem "rspec-rails"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gem "railties", github: "rails"
gem "actionpack", github: "rails"
gem "rack", github: "rack/rack", branch: "2-2-stable"
gem "arel", github: "rails/arel"
gem "sqlite3", "~> 1.4", platforms: :mri
gem "sqlite3", "~> 2", platforms: :mri
gem "better_errors", require: false, platforms: :mri
gem "rspec-rails"
gem "listen"
Expand Down
41 changes: 41 additions & 0 deletions gemfiles/rails8.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "allocation_stats", platforms: :mri, require: false
gem "appraisal", "~> 2.1"
gem "aruba", "~> 2.0"
gem "rspec", "~> 3.0"
gem "rspec-its"
gem "ruby-prof", platforms: :mri, require: false
gem "timecop"
gem "webmock"
gem "capistrano"
gem "rake"
gem "bump", "~> 0.10.0"
gem "activesupport", "~> 8.0.0.beta1"
gem "activemodel", "~> 8.0.0.beta1"
gem "activerecord", "~> 8.0.0.beta1"
gem "activejob", "~> 8.0.0.beta1"
gem "railties", "~> 8.0.0.beta1"
gem "actionpack", "~> 8.0.0.beta1"
gem "sqlite3", "~> 2", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 70", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "tzinfo-data"

group :development do
gem "guard"
gem "guard-rspec"
gem "pry"
gem "pry-byebug", platforms: :mri
gem "rdoc"
end

platforms :ruby_25 do
gem "mathn"
end

gemspec path: "../"

0 comments on commit e5ffc31

Please sign in to comment.