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 Dec 10, 2020
1 parent 439a9b7 commit 7bcf9e7
Show file tree
Hide file tree
Showing 52 changed files with 949 additions and 325 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [2.7.5] - 2020-12-10
### Added
- ✨ Coverage prefix will now work for `after-build` commands as well - via [`#266`](https://github.com/paambaati/codeclimate-action/pull/266). This closes [`#265`](https://github.com/paambaati/codeclimate-action/issues/265). Thanks @matthewshirley!

# [2.7.4] - 2020-10-03
### Added
- 💫 Coverage locations can now be Glob patterns - via [`#240`](https://github.com/paambaati/codeclimate-action/pull/240). This closes [`#234`](https://github.com/paambaati/codeclimate-action/issues/234). Thanks @Sumolari!
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This action requires that you set the [`CC_TEST_REPORTER_ID`](https://docs.codec
```yaml
steps:
- name: Test & publish code coverage
uses: paambaati/[email protected].4
uses: paambaati/[email protected].5
env:
CC_TEST_REPORTER_ID: <code_climate_reporter_id>
with:
Expand All @@ -38,7 +38,7 @@ When you've already generated the coverage report in a previous step and wish to
```yaml
steps:
- name: Test & publish code coverage
uses: paambaati/[email protected].4
uses: paambaati/[email protected].5
env:
CC_TEST_REPORTER_ID: <code_climate_reporter_id>
```
Expand All @@ -50,7 +50,7 @@ This action supports basic glob patterns to search for files matching given patt
```yaml
steps:
- name: Test & publish code coverage
uses: paambaati/[email protected].4
uses: paambaati/[email protected].5
env:
CC_TEST_REPORTER_ID: <code_climate_reporter_id>
with:
Expand All @@ -64,7 +64,7 @@ steps:
```yaml
steps:
- name: Test & publish code coverage
uses: paambaati/[email protected].4
uses: paambaati/[email protected].5
env:
# Set CC_TEST_REPORTER_ID as secret of your repo
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
Expand Down Expand Up @@ -105,7 +105,7 @@ module.exports = {
```yaml
steps:
- name: Test & publish code coverage
uses: paambaati/[email protected].4
uses: paambaati/[email protected].5
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
Expand Down
3 changes: 3 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ function run(downloadUrl = DOWNLOAD_URL, executable = EXECUTABLE, coverageComman
const commands = ['after-build', '--exit-code', lastExitCode.toString()];
if (codeClimateDebug === 'true')
commands.push('--debug');
if (coveragePrefix) {
commands.push('--prefix', coveragePrefix);
}
lastExitCode = yield exec_1.exec(executable, commands, execOpts);
if (lastExitCode !== 0) {
throw new Error(`Coverage after-build exited with code ${lastExitCode}`);
Expand Down
6 changes: 4 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.areObjectsEqual = exports.getOptionalString = void 0;
const core_1 = require("@actions/core");
exports.getOptionalString = (name, defaultValue = '') => core_1.getInput(name, { required: false }) || defaultValue;
exports.areObjectsEqual = (obj1, obj2) => JSON.stringify(obj1) === JSON.stringify(obj2);
const getOptionalString = (name, defaultValue = '') => core_1.getInput(name, { required: false }) || defaultValue;
exports.getOptionalString = getOptionalString;
const areObjectsEqual = (obj1, obj2) => JSON.stringify(obj1) === JSON.stringify(obj2);
exports.areObjectsEqual = areObjectsEqual;
9 changes: 9 additions & 0 deletions node_modules/@actions/glob/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions node_modules/@actions/glob/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/@actions/glob/lib/internal-globber.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions node_modules/@actions/glob/lib/internal-globber.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7bcf9e7

Please sign in to comment.