-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some more code added to support older versions
Also change back to run CI on ubuntu-latest which should work with all Ruby versions supported now.
- Loading branch information
1 parent
72b421e
commit 49e4a99
Showing
5 changed files
with
9 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,7 @@ jobs: | |
ruby: '3.1' | ||
- gemfile: gemfiles/Gemfile-rails-6-0 | ||
env: DEVISE_ORM=mongoid | ||
# TODO: lock `ubunty-20.04` due to older Ruby version compatibility, change to `ubuntu-latest` again when dropping older Ruby support. | ||
# https://github.com/ruby/setup-ruby/issues/496#issuecomment-1520662740 | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | ||
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | ||
steps: | ||
|
@@ -45,8 +43,6 @@ jobs: | |
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs bundle install and caches installed gems automatically | ||
bundler: ${{ env.BUNDLER_VERSION || 'default' }} | ||
rubygems: ${{ env.RUBYGEMS_VERSION || 'latest' }} | ||
- uses: supercharge/[email protected] | ||
if: ${{ matrix.env == 'DEVISE_ORM=mongoid' }} | ||
- run: bundle exec rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
#!/usr/bin/env ruby | ||
$: << File.expand_path(File.expand_path('../../test', __FILE__)) | ||
|
||
# Remove this begin/rescue once Rails 4 support is removed. | ||
begin | ||
require 'bundler/setup' | ||
require 'rails/test_unit/runner' | ||
require 'rails/test_unit/reporter' | ||
require 'rails/test_unit/line_filtering' | ||
require 'bundler/setup' | ||
require 'rails/test_unit/runner' | ||
require 'rails/test_unit/reporter' | ||
require 'rails/test_unit/line_filtering' | ||
|
||
Rails::TestUnitReporter.executable = 'bin/test' | ||
Rails::TestUnitReporter.executable = 'bin/test' | ||
|
||
Rails::TestUnit::Runner.parse_options(ARGV) | ||
Rails::TestUnit::Runner.run(ARGV) | ||
rescue LoadError | ||
exec 'rake' | ||
end | ||
Rails::TestUnit::Runner.parse_options(ARGV) | ||
Rails::TestUnit::Runner.run(ARGV) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters