add logging
This commit is contained in:
parent
2454e13902
commit
0236048e13
@ -35,8 +35,9 @@ class CoverageReport
|
||||
end
|
||||
|
||||
def execute_lcov_parse(report_path)
|
||||
puts "Report path: #{report_path}"
|
||||
bin_path = "#{File.dirname(__FILE__)}/../bin"
|
||||
JSON.parse(`node #{bin_path}/lcov-parse.js #{report_path}`)
|
||||
JSON.parse(`node #{bin_path}/lcov-parse.js #{report_path}` || {})
|
||||
end
|
||||
|
||||
def read_json(path)
|
||||
|
||||
@ -23,6 +23,7 @@ end
|
||||
@coverage_type = ENV['INPUT_TYPE']
|
||||
@report_path = ENV['INPUT_RESULT_PATH']
|
||||
@data = { min: ENV['INPUT_MIN_COVERAGE'] }
|
||||
puts "** #{@report_path} #{@data[:min]} #{@coverage_type}}"
|
||||
|
||||
@report = CoverageReport.generate(@coverage_type, @report_path, @data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user