read from github workspace

This commit is contained in:
miguemasx 2020-03-17 02:48:02 +01:00
parent 2ada319a08
commit 251c13c7f6

View File

@ -20,10 +20,8 @@ class CoverageReport
end
def lcov(report_path, data)
puts `ls /github/workspace`
puts `ls /github/home`
puts `ls /github/workflow`
# lcov = LcovParse.new(File.read("/github/workspace/#{report_path}"))
Dir.entries '/github/workspace'
lcov = LcovParse.new(File.read("/github/workspace/#{report_path}"))
{ 'lines' => { 'covered_percent' => 4, 'minumum_percent' => data[:min] } }
end