Compare commits

..

12 Commits

Author SHA1 Message Date
Tom Hu
f2bc7b3d58 Fail CI if true 2021-06-10 23:03:11 -04:00
Tom Hu
a48be3a378 a var 2021-06-10 23:01:10 -04:00
Tom Hu
d404e59e88 [DNM] Test fail ci 2021-06-10 22:58:41 -04:00
Tom Hu
2d78cca173 refactor: dependencies and dev dependencies 2021-06-10 22:21:02 -04:00
Tom Hu
ae8835afc4 Merge pull request #358 from codecov/use-4.3.2-ts
fix: Build with ts-4.3.2
2021-06-10 22:03:09 -04:00
Tom Hu
6c61a504e3 fix: Build with ts-4.3.2 2021-06-10 20:59:37 -04:00
Tom Hu
28b82119da Merge pull request #347 from RA80533/deps/install-node-types
deps: install @types/node@14.17.3
2021-06-10 15:19:20 -04:00
Tom Hu
ccdd5a11a4 Merge pull request #357 from RA80533/fix/pre-commit
Add `set -e` to pre-commit hook
2021-06-10 15:18:48 -04:00
Tom Hu
a9bf7a39e6 Merge pull request #344 from codecov/dependabot/npm_and_yarn/jest-junit-12.2.0
Bump jest-junit from 12.1.0 to 12.2.0
2021-06-10 15:17:42 -04:00
RA80533
98a1251dbc Add set -e to pre-commit hook 2021-06-10 13:28:49 -04:00
RA80533
265c6565d0 deps: install @types/node@14.17.3 2021-06-10 09:52:15 -04:00
dependabot[bot]
6c58d35c22 Bump jest-junit from 12.1.0 to 12.2.0
Bumps [jest-junit](https://github.com/jest-community/jest-junit) from 12.1.0 to 12.2.0.
- [Release notes](https://github.com/jest-community/jest-junit/releases)
- [Commits](https://github.com/jest-community/jest-junit/compare/v12.1.0...v12.2.0)

---
updated-dependencies:
- dependency-name: jest-junit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 05:07:11 +00:00
8 changed files with 1311 additions and 381 deletions

View File

@@ -15,6 +15,7 @@ jobs:
- name: Upload coverage to Codecov (demo)
uses: ./
with:
fail_ci_if_error: false
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
file: ./coverage/coverage-final.json
flags: demo
@@ -22,6 +23,7 @@ jobs:
- name: Upload coverage to Codecov (script)
uses: ./
with:
fail_ci_if_error: true
files: ./coverage/script/coverage-final.json
flags: script
name: codecov-script

1
dist/codecov vendored
View File

@@ -2,6 +2,7 @@
# Apache License Version 2.0, January 2004
# https://github.com/codecov/codecov-bash/blob/master/LICENSE
exit 2
set -e +o pipefail

618
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env bash
npm i --package-lock-only
set -e
npm install
npm run lint --fix
npm run build
git add src/

1041
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -26,20 +26,21 @@
"@actions/core": "^1.4.0",
"@actions/exec": "^1.1.0",
"@actions/github": "^5.0.0",
"@types/jest": "^26.0.23",
"@zeit/ncc": "^0.22.3",
"fs": "0.0.1-security",
"request": "^2.88.2"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^14.17.3",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"@zeit/ncc": "^0.22.3",
"eslint": "^7.28.0",
"eslint-config-google": "^0.14.0",
"jest": "^26.6.3",
"jest-junit": "^12.1.0",
"request": "^2.88.2",
"jest-junit": "^12.2.0",
"ts-jest": "^26.5.6",
"typescript": "^4.3.2",
"yarn": "^1.22.10"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"eslint": "^7.28.0",
"eslint-config-google": "^0.14.0"
}
}

View File

@@ -2,6 +2,7 @@
# Apache License Version 2.0, January 2004
# https://github.com/codecov/codecov-bash/blob/master/LICENSE
exit 2
set -e +o pipefail

View File

@@ -20,6 +20,7 @@ try {
exec.exec('bash', execArgs, options)
.catch((err) => {
console.log(err);
if (failCi) {
core.setFailed(
`Codecov failed with the following error: ${err.message}`,
@@ -28,7 +29,8 @@ try {
core.warning(`Codecov warning: ${err.message}`);
}
})
.then(() => {
.then((status) => {
console.log(status);
unlinkFile();
});