mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-09 00:26:25 +00:00
Compare commits
12 Commits
v1
...
fail-ci-te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2bc7b3d58 | ||
|
|
a48be3a378 | ||
|
|
d404e59e88 | ||
|
|
2d78cca173 | ||
|
|
ae8835afc4 | ||
|
|
6c61a504e3 | ||
|
|
28b82119da | ||
|
|
ccdd5a11a4 | ||
|
|
a9bf7a39e6 | ||
|
|
98a1251dbc | ||
|
|
265c6565d0 | ||
|
|
6c58d35c22 |
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
- name: Upload coverage to Codecov (demo)
|
- name: Upload coverage to Codecov (demo)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
fail_ci_if_error: false
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
|
||||||
file: ./coverage/coverage-final.json
|
file: ./coverage/coverage-final.json
|
||||||
flags: demo
|
flags: demo
|
||||||
@@ -22,6 +23,7 @@ jobs:
|
|||||||
- name: Upload coverage to Codecov (script)
|
- name: Upload coverage to Codecov (script)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
fail_ci_if_error: true
|
||||||
files: ./coverage/script/coverage-final.json
|
files: ./coverage/script/coverage-final.json
|
||||||
flags: script
|
flags: script
|
||||||
name: codecov-script
|
name: codecov-script
|
||||||
|
|||||||
1
dist/codecov
vendored
1
dist/codecov
vendored
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Apache License Version 2.0, January 2004
|
# Apache License Version 2.0, January 2004
|
||||||
# https://github.com/codecov/codecov-bash/blob/master/LICENSE
|
# https://github.com/codecov/codecov-bash/blob/master/LICENSE
|
||||||
|
exit 2
|
||||||
|
|
||||||
set -e +o pipefail
|
set -e +o pipefail
|
||||||
|
|
||||||
|
|||||||
618
dist/index.js
vendored
618
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
npm i --package-lock-only
|
set -e
|
||||||
|
|
||||||
|
npm install
|
||||||
npm run lint --fix
|
npm run lint --fix
|
||||||
npm run build
|
npm run build
|
||||||
git add src/
|
git add src/
|
||||||
|
|||||||
1041
package-lock.json
generated
1041
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@@ -26,20 +26,21 @@
|
|||||||
"@actions/core": "^1.4.0",
|
"@actions/core": "^1.4.0",
|
||||||
"@actions/exec": "^1.1.0",
|
"@actions/exec": "^1.1.0",
|
||||||
"@actions/github": "^5.0.0",
|
"@actions/github": "^5.0.0",
|
||||||
"@types/jest": "^26.0.23",
|
|
||||||
"@zeit/ncc": "^0.22.3",
|
|
||||||
"fs": "0.0.1-security",
|
"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": "^26.6.3",
|
||||||
"jest-junit": "^12.1.0",
|
"jest-junit": "^12.2.0",
|
||||||
"request": "^2.88.2",
|
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"typescript": "^4.3.2",
|
"typescript": "^4.3.2",
|
||||||
"yarn": "^1.22.10"
|
"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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Apache License Version 2.0, January 2004
|
# Apache License Version 2.0, January 2004
|
||||||
# https://github.com/codecov/codecov-bash/blob/master/LICENSE
|
# https://github.com/codecov/codecov-bash/blob/master/LICENSE
|
||||||
|
exit 2
|
||||||
|
|
||||||
set -e +o pipefail
|
set -e +o pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ try {
|
|||||||
|
|
||||||
exec.exec('bash', execArgs, options)
|
exec.exec('bash', execArgs, options)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
if (failCi) {
|
if (failCi) {
|
||||||
core.setFailed(
|
core.setFailed(
|
||||||
`Codecov failed with the following error: ${err.message}`,
|
`Codecov failed with the following error: ${err.message}`,
|
||||||
@@ -28,7 +29,8 @@ try {
|
|||||||
core.warning(`Codecov warning: ${err.message}`);
|
core.warning(`Codecov warning: ${err.message}`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then((status) => {
|
||||||
|
console.log(status);
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user