forked from rails/exception_notification
-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github action for testing and update test suite
- Loading branch information
Showing
14 changed files
with
79 additions
and
76 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: main | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
rspec: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
ruby-version: | ||
- 2.6 | ||
- 2.7 | ||
- 3.0.0 | ||
- 3.1 | ||
gemfile: | ||
- rails5_2.gemfile | ||
- rails6_0.gemfile | ||
- rails6_1.gemfile | ||
- rails7_0.gemfile | ||
exclude: | ||
- ruby-version: 2.6 | ||
gemfile: rails7_0.gemfile | ||
- ruby-version: 3.0.0 | ||
gemfile: rails5_2.gemfile | ||
- ruby-version: 3.1 | ||
gemfile: rails5_2.gemfile | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
|
||
- name: Install required gems | ||
run: BUNDLE_GEMFILE=gemfiles/${{ matrix.gemfile }} bundle install --jobs=3 --retry=3 | ||
|
||
- name: Run rspec tests | ||
run: BUNDLE_GEMFILE=gemfiles/${{ matrix.gemfile }} bundle exec rake test | ||
|
||
rubocop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0.0 | ||
bundler-cache: true | ||
|
||
- name: Install required gems | ||
run: bundle install | ||
|
||
- name: Run rubocop | ||
run: bundle exec rubocop |
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
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 |
---|---|---|
|
@@ -17,8 +17,8 @@ There's a great [Railscast about Exception Notification](http://railscasts.com/e | |
|
||
## Requirements | ||
|
||
* Ruby 2.3 or greater | ||
* Rails 4.0 or greater, Sinatra or another Rack-based application. | ||
* Ruby 2.5 or greater | ||
* Rails 5.2 or greater, Sinatra or another Rack-based application. | ||
|
||
## Getting Started | ||
|
||
|
@@ -35,7 +35,6 @@ ExceptionNotification is used as a rack middleware, or in the environment you wa | |
```ruby | ||
Rails.application.config.middleware.use ExceptionNotification::Rack, | ||
email: { | ||
deliver_with: :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now | ||
email_prefix: '[PREFIX] ', | ||
sender_address: %{"notifier" <[email protected]>}, | ||
exception_recipients: %w{[email protected]} | ||
|
@@ -270,7 +269,6 @@ def server_error(exception) | |
end | ||
``` | ||
|
||
|
||
## Extras | ||
|
||
### Rails | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "~> 4.0.5" | ||
gem "rails", "~> 6.1.0" | ||
|
||
gemspec path: "../" |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "~> 4.1.1" | ||
gem "rails", "~> 7.0.0" | ||
|
||
gemspec path: "../" |
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
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