Skip to content

Commit

Permalink
feat: Build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed Oct 31, 2019
1 parent 89f8f6b commit ccb71c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:
CC_TEST_REPORTER_ID: <code_climate_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)
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ccb71c6

Please sign in to comment.