mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-09 00:26:25 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9a1bbc2da | ||
|
|
fcebab03f2 | ||
|
|
7ea3ba9ac0 | ||
|
|
6ed0d16b40 | ||
|
|
79a0ba12c8 |
39
CHANGELOG.md
39
CHANGELOG.md
@@ -1,38 +1,51 @@
|
||||
### 1.2.2
|
||||
## 1.3.2
|
||||
- # Overwrites pr number for pull_request_target events
|
||||
|
||||
#### Fixes
|
||||
## 1.3.1
|
||||
|
||||
### Fixes
|
||||
- #253 Add `network_filter` to action manifest
|
||||
|
||||
## 1.3.0
|
||||
|
||||
### Features
|
||||
- #252 Add "network_filter" input
|
||||
|
||||
## 1.2.2
|
||||
|
||||
### Fixes
|
||||
- #241 pass root_dir using proper bash arg
|
||||
- #244 Overwrite the commit on pull_request* events
|
||||
|
||||
### 1.2.1
|
||||
## 1.2.1
|
||||
|
||||
#### Fixes
|
||||
### Fixes
|
||||
- #196 Add parameters to the action.yml
|
||||
|
||||
### 1.2.0
|
||||
## 1.2.0
|
||||
|
||||
#### Features
|
||||
### Features
|
||||
- #193 Add all the bash params
|
||||
|
||||
#### Fixes
|
||||
### Fixes
|
||||
- #193 Fixes issue with working-directory
|
||||
|
||||
### 1.1.1
|
||||
## 1.1.1
|
||||
|
||||
#### Fixes
|
||||
### Fixes
|
||||
- #184 Add automations ensure proper builds and deployments
|
||||
- #184 Fixes verbose flag
|
||||
|
||||
### 1.1.0
|
||||
## 1.1.0
|
||||
|
||||
#### Features
|
||||
### Features
|
||||
- #110 Add "working-directory:" input
|
||||
- #174 Support Xcode specificed parameters
|
||||
|
||||
#### Fixes
|
||||
### Fixes
|
||||
- #172 File is saved as text
|
||||
|
||||
#### Dependencies and Misc
|
||||
### Dependencies and Misc
|
||||
- #166 Bump requestretry from 4.1.1 to 4.1.2
|
||||
- #169 Bump typescript from 4.0.5 to 4.1.2
|
||||
- #178 Bump @types/jest from 26.0.15 to 26.0.19
|
||||
|
||||
@@ -74,6 +74,9 @@ inputs:
|
||||
override_tag:
|
||||
description: 'Specify the git tag'
|
||||
required: false
|
||||
network_filter:
|
||||
description: 'Used to restrict the set of git/hg files that can be matched with filenames in the coverage report. This is useful for monorepos or other setups where a full filepath may not be specified in the coverage report, and that shortened filepath may appear multiple times in a directory structure (e.g. __init__.py)'
|
||||
required: false
|
||||
path_to_write_report:
|
||||
description: 'Write upload file to path before uploading'
|
||||
required: false
|
||||
|
||||
9
dist/index.js
vendored
9
dist/index.js
vendored
@@ -17533,7 +17533,7 @@ Fingerprint._oldVersionDetect = function (obj) {
|
||||
"use strict";
|
||||
|
||||
|
||||
var RETRIABLE_ERRORS = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED', 'EHOSTUNREACH', 'EPIPE', 'EAI_AGAIN', 'EBUSY'];
|
||||
var RETRIABLE_ERRORS = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED', 'EHOSTUNREACH', 'EPIPE', 'EAI_AGAIN'];
|
||||
var _ = __webpack_require__(557);
|
||||
|
||||
/**
|
||||
@@ -59529,6 +59529,7 @@ var buildExec = function () {
|
||||
var gcovInclude = core.getInput('gcov_path_include');
|
||||
var gcovPrefix = core.getInput('gcov_prefix');
|
||||
var name = core.getInput('name');
|
||||
var networkFilter = core.getInput('network_filter');
|
||||
var overrideBranch = core.getInput('override_branch');
|
||||
var overrideBuild = core.getInput('override_build');
|
||||
var overrideCommit = core.getInput('override_commit');
|
||||
@@ -59616,6 +59617,9 @@ var buildExec = function () {
|
||||
if (gcovPrefix) {
|
||||
execArgs.push('-k', "" + gcovPrefix);
|
||||
}
|
||||
if (networkFilter) {
|
||||
execArgs.push('-i', "" + networkFilter);
|
||||
}
|
||||
if (overrideBranch) {
|
||||
execArgs.push('-B', "" + overrideBranch);
|
||||
}
|
||||
@@ -59632,6 +59636,9 @@ var buildExec = function () {
|
||||
if (overridePr) {
|
||||
execArgs.push('-P', "" + overridePr);
|
||||
}
|
||||
else if ("" + context.eventName == 'pull_request_target') {
|
||||
execArgs.push('-P', "" + context.payload.number);
|
||||
}
|
||||
if (overrideTag) {
|
||||
execArgs.push('-T', "" + overrideTag);
|
||||
}
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "codecov-action",
|
||||
"version": "1.2.2",
|
||||
"version": "1.3.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "codecov-action",
|
||||
"version": "1.2.2",
|
||||
"version": "1.3.2",
|
||||
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -42,6 +42,7 @@ test('all arguments', () => {
|
||||
'gcov_path_include': '**/include-dir/*.*',
|
||||
'gcov_prefix': 'demo',
|
||||
'name': 'codecov',
|
||||
'network_filter': 'dir1',
|
||||
'override_branch': 'thomasrockhu/test',
|
||||
'override_build': '1',
|
||||
'override_commit': '9caabca5474b49de74ef5667deabaf74cdacc244',
|
||||
@@ -114,6 +115,8 @@ test('all arguments', () => {
|
||||
'**/include-dir/*.*',
|
||||
'-k',
|
||||
'demo',
|
||||
'-i',
|
||||
'dir1',
|
||||
'-B',
|
||||
'thomasrockhu/test',
|
||||
'-b',
|
||||
|
||||
@@ -32,6 +32,7 @@ const buildExec = () => {
|
||||
const gcovInclude = core.getInput('gcov_path_include');
|
||||
const gcovPrefix = core.getInput('gcov_prefix');
|
||||
const name = core.getInput('name');
|
||||
const networkFilter = core.getInput('network_filter');
|
||||
const overrideBranch = core.getInput('override_branch');
|
||||
const overrideBuild = core.getInput('override_build');
|
||||
const overrideCommit = core.getInput('override_commit');
|
||||
@@ -123,6 +124,9 @@ const buildExec = () => {
|
||||
if (gcovPrefix) {
|
||||
execArgs.push('-k', `${gcovPrefix}`);
|
||||
}
|
||||
if (networkFilter) {
|
||||
execArgs.push('-i', `${networkFilter}`);
|
||||
}
|
||||
if (overrideBranch) {
|
||||
execArgs.push('-B', `${overrideBranch}`);
|
||||
}
|
||||
@@ -139,6 +143,10 @@ const buildExec = () => {
|
||||
}
|
||||
if (overridePr) {
|
||||
execArgs.push('-P', `${overridePr}`);
|
||||
} else if (
|
||||
`${context.eventName}` == 'pull_request_target'
|
||||
) {
|
||||
execArgs.push('-P', `${context.payload.number}`);
|
||||
}
|
||||
if (overrideTag) {
|
||||
execArgs.push('-T', `${overrideTag}`);
|
||||
|
||||
Reference in New Issue
Block a user