mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Compare commits
3 Commits
v5.4.3
...
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)
|
- 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
|
||||||
|
|
||||||
|
|||||||
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -1886,6 +1886,7 @@ 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(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 +1894,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,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