Use GitHub Actions to upload Coveralls report
This commit is contained in:
parent
f7c7b56bd0
commit
434cc59ae8
4 changed files with 17 additions and 25 deletions
|
|
@ -58,6 +58,15 @@ RSpec.configure do |config|
|
|||
config.infer_spec_type_from_file_location!
|
||||
end
|
||||
|
||||
if ENV['COVERAGE'] == 'lcov'
|
||||
require 'simplecov-lcov'
|
||||
SimpleCov::Formatter::LcovFormatter.config do |c|
|
||||
c.report_with_single_file = true
|
||||
c.single_report_path = 'coverage/lcov.info'
|
||||
end
|
||||
SimpleCov.formatters = SimpleCov::Formatter::LcovFormatter
|
||||
end
|
||||
|
||||
# include default foodsoft scope in urls, so that *_path works
|
||||
# https://github.com/rspec/rspec-rails/issues/255
|
||||
class ActionDispatch::Routing::RouteSet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue