mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Compare commits
3 Commits
v4.5.0
...
fail-ci-te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2bc7b3d58 | ||
|
|
a48be3a378 | ||
|
|
d404e59e88 |
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -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
1
dist/codecov
vendored
@@ -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
|
||||
|
||||
|
||||
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -1886,6 +1886,7 @@ try {
|
||||
core.warning("Codecov warning: " + err.message);
|
||||
}
|
||||
exec.exec('bash', execArgs_1, options_1)["catch"](function (err) {
|
||||
console.log(err);
|
||||
if (failCi_1) {
|
||||
core.setFailed("Codecov failed with the following error: " + err.message);
|
||||
}
|
||||
@@ -1893,7 +1894,8 @@ try {
|
||||
core.warning("Codecov warning: " + err.message);
|
||||
}
|
||||
})
|
||||
.then(function () {
|
||||
.then(function (status) {
|
||||
console.log(status);
|
||||
unlinkFile();
|
||||
});
|
||||
var unlinkFile = function () {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user