Skip to content

Commit

Permalink
Test with Rails 8.0.0 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 10, 2024
1 parent b75f462 commit 69af703
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
include:
- ruby: 3.3
gemfile: Gemfile
- ruby: 3.3
gemfile: gemfiles/rails72.gemfile
- ruby: 3.2
gemfile: gemfiles/rails71.gemfile
- ruby: 3.1
Expand Down Expand Up @@ -45,3 +47,4 @@ jobs:

- uses: ankane/setup-mongodb@v1
- run: ADAPTER=mongoid bundle exec rake test
- if: ${{ matrix.gemfile != 'Gemfile' }}
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ source "https://rubygems.org"

gemspec

gem "rails", "~> 7.2.0"
gem "rails", "~> 8.0.0"
gem "rake"
gem "minitest"
gem "combustion"
gem "sqlite3"
gem "pg"
gem "mysql2"
gem "trilogy"
gem "mongoid"
# does not support Rails 8 yet
# gem "mongoid"
gem "browser", "~> 2.0"
gem "user_agent_parser"
15 changes: 15 additions & 0 deletions gemfiles/rails72.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source "https://rubygems.org"

gemspec path: ".."

gem "rails", "~> 7.2.0"
gem "rake"
gem "minitest"
gem "combustion"
gem "sqlite3"
gem "pg"
gem "mysql2"
gem "trilogy"
gem "mongoid"
gem "browser", "~> 2.0"
gem "user_agent_parser"
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Bundler.require(:default)
require "minitest/autorun"
require "minitest/pride"
require "ostruct"

ENV["ADAPTER"] ||= "sqlite3"
puts "Using #{ENV["ADAPTER"]}"
Expand Down

0 comments on commit 69af703

Please sign in to comment.