diff --git a/README.md b/README.md index c33d66f4..2d3abbc5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ steps: CC_TEST_REPORTER_ID: with: coverageCommand: npm run coverage - debug: false + debug: true ``` Example project — [paambaati/websight](https://github.com/paambaati/websight/blob/663bd4245b3c2dbd768aff9bfc197103ee77973e/.github/workflows/ci.yml#L33-L49) diff --git a/action.yml b/action.yml index 12f8aaf5..d69836d4 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,9 @@ inputs: coverageCommand: description: 'Coverage command to execute' default: 'yarn coverage' + debug: + description: 'Enable debugging logs for the Code Climate test reporter' + default: 'false' runs: using: 'node12' main: 'lib/main.js' diff --git a/lib/main.js b/lib/main.js index cb05e4d4..763e8f91 100644 --- a/lib/main.js +++ b/lib/main.js @@ -104,7 +104,7 @@ if (!module.parent) { let coverageCommand = core_1.getInput('coverageCommand', { required: false }); if (!coverageCommand.length) coverageCommand = DEFAULT_COVERAGE_COMMAND; - let codeClimateDebug = core_1.getInput('codeClimateDebug', { required: false }); + let codeClimateDebug = core_1.getInput('debug', { required: false }); if (!coverageCommand.length) codeClimateDebug = DEFAULT_CODECLIMATE_DEBUG; run(DOWNLOAD_URL, EXECUTABLE, coverageCommand, codeClimateDebug);