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 c9de541 commit 0e95e17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ const COVERAGE_OUTPUT_FOLDER = './coverage';
const shortBaseSha = pullRequest.base.sha.slice(0, 7)

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

0 comments on commit 0e95e17

Please sign in to comment.