only run simplecov in CI
This commit is contained in:
Родитель
931551d467
Коммит
3bddb6f875
|
@ -62,6 +62,7 @@ jobs:
|
|||
bundle update
|
||||
bundle exec rake
|
||||
env:
|
||||
CI: true
|
||||
RAILS_VERSION: ${{ matrix.rails_version }}
|
||||
- name: Upload coverage results
|
||||
uses: actions/upload-artifact@master
|
||||
|
|
|
@ -85,7 +85,7 @@ GIT
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
view_component (2.18.1)
|
||||
view_component (2.19.1)
|
||||
activesupport (>= 5.0.0, < 7.0)
|
||||
|
||||
GEM
|
||||
|
|
|
@ -2,10 +2,12 @@
|
|||
require "simplecov"
|
||||
require "simplecov-console"
|
||||
|
||||
SimpleCov.start do
|
||||
command_name "rails#{ENV["RAILS_VERSION"]}-ruby#{ENV["RUBY_VERSION"]}" if ENV["RUBY_VERSION"]
|
||||
if ENV["CI"]
|
||||
SimpleCov.start do
|
||||
command_name "rails#{ENV["RAILS_VERSION"]}-ruby#{ENV["RUBY_VERSION"]}" if ENV["RUBY_VERSION"]
|
||||
|
||||
formatter SimpleCov::Formatter::Console
|
||||
formatter SimpleCov::Formatter::Console
|
||||
end
|
||||
end
|
||||
|
||||
require "bundler/setup"
|
||||
|
|
Загрузка…
Ссылка в новой задаче