-
-
Notifications
You must be signed in to change notification settings - Fork 1k
[wip] Changes to support Rails 6.1 #2400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ab41d70
Improve controller template when no action
0769933
fix pr according to @pirj remarks
mustapha-stockoss 5f6a713
Merge pull request #1 from mustapha-stockoss/feat/ticket-2375
ThHareau 14ed3ca
Fix rubocop error
ed75485
Update expected rspec versions
JonRowe ea09924
Merge pull request #2399 from ThHareau/feat/ticket-2375
pirj f057558
Changelog for #2399
JonRowe 934276b
Add exception for rspec ci
JonRowe fb018f1
Move MRI build to Github Actions
benoittgt 1d12c96
Avoid 'mountable_engine?' stub to leak to next specs in the same file
benoittgt 6b7eec0
Run the same branch on GA and Travis
benoittgt 08bdd11
Share env variables to other steps with RSpec scripts
benoittgt 7667604
Fix argument error on Ruby3.0.preview1 and ActionMailer
benoittgt e265a35
Reduce dup by moving env and continue-on-error before steps
benoittgt 6394472
Revert to previous working commands to install dependencies
benoittgt 67a9899
Set explicit hash as last arg to avoid "wrong number of arguments" error
benoittgt 029416b
continue-on-error seems to work only when defined in step
benoittgt 9217638
Merge pull request #2404 from rspec/move-to-github-actions
JonRowe 2b41dc9
Setup rails 6.1 builds
JonRowe 34f37c3
Switch accessor for fixture path in file upload support for 6.1
JonRowe fdd88df
Fix controller spec on Rails 6.1
JonRowe c7e14ea
Fix view specs on Rails 6.1
JonRowe 05f3a2c
Prevent undefined method 'parent' for ExampleApp::Application:Class
benoittgt 693116d
Skip test for deprecated support of relative paths to `render file:`
benoittgt b1a0a5a
Switch to first release candidate of Rails
benoittgt 3fe8fca
Use mailbox_for when available
benoittgt 5da7f4e
Add missing jRuby from rails 6.1 first release candidtate
benoittgt 2163b2e
Add Rails 6.1 rc1 to Github Action CI
benoittgt 6c4c061
Merge branch 'rails-6-1-dev' into wip-rails-6-1-dev
benoittgt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: RSpec CI | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- '*-maintenance' | ||
- '*-dev' | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
test: | ||
name: 'Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}' | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# Rails 6.1.0.rc1 builds >= 2.5.0 | ||
- ruby: 3.0.0-preview1 | ||
env: | ||
RAILS_VERSION: '6.1.0.rc1' | ||
- ruby: 2.7 | ||
env: | ||
RAILS_VERSION: '6.1.0.rc1' | ||
- ruby: 2.6 | ||
env: | ||
RAILS_VERSION: '6.1.0.rc1' | ||
- ruby: 2.5 | ||
env: | ||
RAILS_VERSION: '6.1.0.rc1' | ||
# Rails 6.0 builds >= 2.5.0 | ||
- ruby: 3.0.0-preview1 | ||
env: | ||
RAILS_VERSION: '~> 6.0.0' | ||
- ruby: 2.7 | ||
env: | ||
RAILS_VERSION: '~> 6.0.0' | ||
- ruby: 2.6 | ||
env: | ||
RAILS_VERSION: '~> 6.0.0' | ||
- ruby: 2.5 | ||
env: | ||
RAILS_VERSION: '~> 6.0.0' | ||
# Rails 5.2 builds >= 2.2.2 | ||
- ruby: 2.6.6 | ||
env: | ||
RAILS_VERSION: '~> 5.2.0' | ||
- ruby: 2.5.8 | ||
env: | ||
RAILS_VERSION: '~> 5.2.0' | ||
- ruby: 2.4.10 | ||
env: | ||
RAILS_VERSION: '~> 5.2.0' | ||
- ruby: 2.3.8 | ||
env: | ||
RAILS_VERSION: '~> 5.2.0' | ||
- ruby: 2.2.10 | ||
allow_failure: true | ||
env: | ||
RAILS_VERSION: '~> 5.2.0' | ||
- ruby: 2.2.10 | ||
env: | ||
RAILS_VERSION: '5-2-stable' | ||
# Rails 5.1 Builds >= 2.2.2 | ||
- ruby: 2.6.6 | ||
env: | ||
RAILS_VERSION: '~> 5.1.0' | ||
- ruby: 2.5.8 | ||
env: | ||
RAILS_VERSION: '~> 5.1.0' | ||
- ruby: 2.4.10 | ||
env: | ||
RAILS_VERSION: '~> 5.1.0' | ||
- ruby: 2.3.8 | ||
env: | ||
RAILS_VERSION: '~> 5.1.0' | ||
- ruby: 2.2.10 | ||
env: | ||
RAILS_VERSION: '~> 5.1.0' | ||
# Rails 5.0 Builds >= 2.2.2 | ||
- ruby: 2.6.6 | ||
env: | ||
RAILS_VERSION: '~> 5.0.0' | ||
- ruby: 2.5.8 | ||
env: | ||
RAILS_VERSION: '~> 5.0.0' | ||
- ruby: 2.4.10 | ||
env: | ||
RAILS_VERSION: '~> 5.0.0' | ||
- ruby: 2.3.8 | ||
env: | ||
RAILS_VERSION: '~> 5.0.0' | ||
- ruby: 2.2.10 | ||
env: | ||
RAILS_VERSION: '~> 5.0.0' | ||
env: ${{ matrix.env }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- run: script/clone_all_rspec_repos | ||
- run: bundle install --binstubs | ||
- run: script/run_build | ||
continue-on-error: ${{ matrix.allow_failure || false }} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we doing this? It should be replaced not removed no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had errors like
undefined method 'parent' for ExampleApp::Application:Class
. I noticed that this gsub is not needed anymore.