Skip to content

Commit

Permalink
chore: log readfile
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Sep 27, 2022
1 parent 45e5269 commit c9de541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ const COVERAGE_OUTPUT_FOLDER = './coverage';
const shortBaseSha = pullRequest.base.sha.slice(0, 7)

// Read current head results from disk
const headResult = JSON.parse(fs.readFileSync(`${COVERAGE_OUTPUT_FOLDER}/coverage-summary.json`, 'utf8'))
const coverageSummary = fs.readFileSync(`${COVERAGE_OUTPUT_FOLDER}/coverage-summary.json`, 'utf8')
core.info('coverage summary: ', coverageSummary)
const headResult = JSON.parse(coverageSummary)
core.info('head result: ', headResult)
const headTotals = headResult.data.total
const headPercentages = [
headTotals.lines.pct,
Expand Down

0 comments on commit c9de541

Please sign in to comment.