Skip to content

Commit

Permalink
chore: get head results from uploaded report
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Sep 27, 2022
1 parent 26ce6d4 commit 4679ef9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,7 @@ const COVERAGE_OUTPUT_FOLDER = './coverage';
const shortBaseSha = pullRequest.base.sha.slice(0, 7)

// Read current head results from disk
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 headResult = await getReport({ reportUrl: `${UPLOAD_URL}/coverage-summary.json` })
const headTotals = headResult.data.total
const headPercentages = [
headTotals.lines.pct,
Expand Down

0 comments on commit 4679ef9

Please sign in to comment.