mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
[DNM] Test fail ci
This commit is contained in:
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
|
||||||
|
|
||||||
|
|||||||
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -1886,6 +1886,8 @@ try {
|
|||||||
core.warning("Codecov warning: " + err.message);
|
core.warning("Codecov warning: " + err.message);
|
||||||
}
|
}
|
||||||
exec.exec('bash', execArgs_1, options_1)["catch"](function (err) {
|
exec.exec('bash', execArgs_1, options_1)["catch"](function (err) {
|
||||||
|
console.log(status);
|
||||||
|
console.log(err);
|
||||||
if (failCi_1) {
|
if (failCi_1) {
|
||||||
core.setFailed("Codecov failed with the following error: " + err.message);
|
core.setFailed("Codecov failed with the following error: " + err.message);
|
||||||
}
|
}
|
||||||
@@ -1893,7 +1895,8 @@ try {
|
|||||||
core.warning("Codecov warning: " + err.message);
|
core.warning("Codecov warning: " + err.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function (status) {
|
||||||
|
console.log(status);
|
||||||
unlinkFile();
|
unlinkFile();
|
||||||
});
|
});
|
||||||
var unlinkFile = function () {
|
var unlinkFile = function () {
|
||||||
|
|||||||
@@ -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,8 @@ try {
|
|||||||
|
|
||||||
exec.exec('bash', execArgs, options)
|
exec.exec('bash', execArgs, options)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
console.log(status);
|
||||||
|
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 +30,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