mirror of
https://github.com/codecov/codecov-action.git
synced 2026-03-28 08:55:07 +00:00
Compare commits
14 Commits
v1.5.1
...
fail-ci-te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2bc7b3d58 | ||
|
|
a48be3a378 | ||
|
|
d404e59e88 | ||
|
|
2d78cca173 | ||
|
|
ae8835afc4 | ||
|
|
6c61a504e3 | ||
|
|
28b82119da | ||
|
|
ccdd5a11a4 | ||
|
|
a9bf7a39e6 | ||
|
|
98a1251dbc | ||
|
|
265c6565d0 | ||
|
|
6c58d35c22 | ||
|
|
29386c70ef | ||
|
|
52497068bd |
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,3 +1,7 @@
|
|||||||
|
## 1.5.2
|
||||||
|
### Fixes
|
||||||
|
- # fix: Import version properly as string not object
|
||||||
|
|
||||||
## 1.5.1
|
## 1.5.1
|
||||||
### Fixes
|
### Fixes
|
||||||
- #320 doc: add github actions badge
|
- #320 doc: add github actions badge
|
||||||
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
624
dist/index.js
vendored
624
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/
|
||||||
|
|||||||
1043
package-lock.json
generated
1043
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import buildExec from './buildExec';
|
import buildExec from './buildExec';
|
||||||
const github = require('@actions/github');
|
const github = require('@actions/github');
|
||||||
|
|
||||||
const VERSION = require('./version');
|
import VERSION from './version';
|
||||||
|
|
||||||
const context = github.context;
|
const context = github.context;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
const core = require('@actions/core');
|
const core = require('@actions/core');
|
||||||
const github = require('@actions/github');
|
const github = require('@actions/github');
|
||||||
|
|
||||||
const VERSION = require('./version');
|
import VERSION from './version';
|
||||||
|
|
||||||
const context = github.context;
|
const context = github.context;
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
const VERSION = 'v1.5.0';
|
const VERSION = 'v1.5.2';
|
||||||
|
|
||||||
export default VERSION;
|
export default VERSION;
|
||||||
|
|||||||
Reference in New Issue
Block a user