Skip to content

Commit 7f9b4e1

Browse files
alvrazgosalvez
andauthored
Specify actual coverage in error message. (#36)
* Specify actual coverage in error message. * Run prepare * Update index.js.map Co-authored-by: Zennon Gosalvez <1798166+zgosalvez@users.noreply.github.com>
1 parent ece4ccf commit 7f9b4e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/main/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function run() {
2525
const totalCoverage = lcovTotal(coverageFile);
2626
const minimumCoverage = core.getInput('minimum-coverage');
2727
const gitHubToken = core.getInput('github-token').trim();
28-
const errorMessage = `The code coverage is too low. Expected at least ${minimumCoverage}.`;
28+
const errorMessage = `The code coverage is too low: ${totalCoverage}. Expected at least ${minimumCoverage}.`;
2929
const isFailure = totalCoverage < minimumCoverage;
3030

3131
if (gitHubToken !== '' && events.includes(github.context.eventName)) {

0 commit comments

Comments
 (0)