Compare commits

..

12 Commits

Author SHA1 Message Date
Tom Hu
7de43a7373 Merge pull request #180 from codecov/1.1.0
Bump to 1.1.0
2020-12-17 13:21:17 -05:00
Tom Hu
09facdbe25 Merge pull request #110 from khaeru/working-dir
Add "working-directory:" input
2020-12-16 11:21:50 -05:00
Paul Natsuo Kishimoto
c770ad46b3 Add "working-directory:" to README 2020-12-15 11:41:23 +01:00
Paul Natsuo Kishimoto
55dde41e2b Add "working-directory:" setting 2020-12-15 11:40:37 +01:00
Tom Hu
beb5a9626e Merge pull request #178 from codecov/dependabot/npm_and_yarn/types/jest-26.0.19
Bump @types/jest from 26.0.15 to 26.0.19
2020-12-12 21:36:05 -05:00
dependabot-preview[bot]
a869df4496 Bump @types/jest from 26.0.15 to 26.0.19
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.15 to 26.0.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-11 06:30:54 +00:00
Tom Hu
a116b3286f Merge pull request #169 from codecov/dependabot/npm_and_yarn/typescript-4.1.2
Bump typescript from 4.0.5 to 4.1.2
2020-12-09 21:42:17 -05:00
Tom Hu
a6c42c7a01 Merge pull request #174 from kingpowerclick/xcode-derived-data
Support Xcode specificed parameters
2020-12-09 21:36:55 -05:00
dependabot-preview[bot]
3c9462a34c Bump typescript from 4.0.5 to 4.1.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.5 to 4.1.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.5...v4.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-09 16:36:50 +00:00
Tom Hu
5155bd4dd2 Merge pull request #166 from codecov/dependabot/npm_and_yarn/requestretry-4.1.2
Bump requestretry from 4.1.1 to 4.1.2
2020-12-09 11:35:04 -05:00
Wipoo Shinsirikul
c047d5942e Support Xcode specificed parameters 2020-12-05 20:31:36 +07:00
dependabot-preview[bot]
3db8e6c626 Bump requestretry from 4.1.1 to 4.1.2
Bumps [requestretry](https://github.com/FGRibreau/node-request-retry) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/FGRibreau/node-request-retry/releases)
- [Changelog](https://github.com/FGRibreau/node-request-retry/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FGRibreau/node-request-retry/compare/v4.1.1...v4.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-12 06:46:28 +00:00
5 changed files with 38 additions and 15 deletions

View File

@@ -33,8 +33,6 @@ steps:
Codecov's Action currently supports five inputs from the user: `token`, `file`, `flags`,`name`, and `fail_ci_if_error`. These inputs, along with their descriptions and usage contexts, are listed in the table below:
>**Update**: We've removed the `yml` parameter with the latest release of this action. Please put your custom codecov yaml file at the root of the repo because other locations will no longer be supported in the future.
| Input | Description | Usage |
| :---: | :---: | :---: |
| `token` | Used to authorize coverage report uploads | *Required for private repos* |
@@ -47,6 +45,9 @@ Codecov's Action currently supports five inputs from the user: `token`, `file`,
| `fail_ci_if_error` | Specify if CI pipeline should fail when Codecov runs into errors during upload. *Defaults to **false*** | Optional
| `path_to_write_report` | Write upload file to path before uploading | Optional
| `verbose` | Specify whether the Codecov output should be verbose | Optional
| `working-directory` | Directory in which to execute `codecov.sh` | Optional
| `xcode_derived_data` | Custom Derived Data Path for Coverage.profdata and gcov processing | Optional
| `xcode_package` | Specify packages to build coverage. Uploader will only build these packages. This can significantly reduces time to build coverage reports. -J 'MyAppName' Will match "MyAppName" and "MyAppNameTests" -J '^ExampleApp$' Will match only "ExampleApp" not "ExampleAppTests" | Optional
### Example `workflow.yml` with Codecov Action

View File

@@ -32,6 +32,9 @@ inputs:
verbose:
description: 'Specify whether the Codecov output should be verbose'
required: false
working-directory:
description: 'Directory in which to execute codecov.sh'
required: false
branding:
color: 'red'
icon: 'umbrella'

View File

@@ -14,6 +14,9 @@ try {
const dir = core.getInput("directory");
const write_path = core.getInput("path_to_write_report");
const verbose = core.getInput("verbose");
const working_dir = core.getInput("working-directory");
const xcode_derived_data = core.getInput("xcode_derived_data");
const xcode_package = core.getInput("xcode_package");
fail_ci = core.getInput("fail_ci_if_error").toLowerCase();
@@ -135,6 +138,22 @@ try {
);
}
if (working_dir) {
options.cwd = working_dir;
}
if (xcode_derived_data) {
execArgs.push(
"-D", `${xcode_derived_data}`
);
}
if (xcode_package) {
execArgs.push(
"-J", `${xcode_package}`
);
}
exec.exec("bash", execArgs, options)
.catch(err => {
if (fail_ci) {

20
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "codecov-action",
"version": "1.0.14",
"version": "1.0.15",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -988,9 +988,9 @@
}
},
"@types/jest": {
"version": "26.0.15",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.15.tgz",
"integrity": "sha512-s2VMReFXRg9XXxV+CW9e5Nz8fH2K1aEhwgjUqPPbQd7g95T0laAcvLv032EhFHIa5GHsZ8W7iJEQVaJq6k3Gog==",
"version": "26.0.19",
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.19.tgz",
"integrity": "sha512-jqHoirTG61fee6v6rwbnEuKhpSKih0tuhqeFbCmMmErhtu3BYlOZaXWjffgOstMM4S/3iQD31lI5bGLTrs97yQ==",
"requires": {
"jest-diff": "^26.0.0",
"pretty-format": "^26.0.0"
@@ -4634,9 +4634,9 @@
}
},
"requestretry": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/requestretry/-/requestretry-4.1.1.tgz",
"integrity": "sha512-sV2lkWitASDXpIK+m0scC7dHBkW42EKj5iao6Cp8GCXsXY7qS4Q/min6PP5YBuqgV9W38lsA7LUhEkOezl1/Og==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/requestretry/-/requestretry-4.1.2.tgz",
"integrity": "sha512-N1WAp+8eOy8NfsVBChcSxNCKvPY1azOpliQ4Sby4WDe0HFEhdKywlNZeROMBQ+BI3Jpc0eNOT1KVFGREawtahA==",
"requires": {
"extend": "^3.0.2",
"lodash": "^4.17.15",
@@ -5384,9 +5384,9 @@
}
},
"typescript": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.5.tgz",
"integrity": "sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ=="
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz",
"integrity": "sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ=="
},
"union-value": {
"version": "1.0.1",

View File

@@ -24,15 +24,15 @@
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.4",
"@types/jest": "^26.0.15",
"@types/jest": "^26.0.19",
"@zeit/ncc": "^0.22.3",
"fs": "0.0.1-security",
"jest": "^26.6.3",
"jest-junit": "^12.0.0",
"request": "^2.88.2",
"requestretry": "^4.1.1",
"requestretry": "^4.1.2",
"ts-jest": "^26.4.4",
"typescript": "^4.0.5",
"typescript": "^4.1.2",
"yarn": "^1.22.10"
},
"devDependencies": {}