Skip to content

Commit

Permalink
Merge pull request #252 from codecov/1.3.0
Browse files Browse the repository at this point in the history
Add network filter parameter
  • Loading branch information
thomasrockhu authored Mar 16, 2021
2 parents 1f8f3ab + 79a0ba1 commit 6ed0d16
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 1.3.0

#### Features
- #252 Add "network_filter" input

### 1.2.2

#### Fixes
Expand Down
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codecov-action",
"version": "1.2.2",
"version": "1.3.0",
"description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/buildExec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -114,6 +115,8 @@ test('all arguments', () => {
'**/include-dir/*.*',
'-k',
'demo',
'-i',
'dir1',
'-B',
'thomasrockhu/test',
'-b',
Expand Down
4 changes: 4 additions & 0 deletions src/buildExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -123,6 +124,9 @@ const buildExec = () => {
if (gcovPrefix) {
execArgs.push('-k', `${gcovPrefix}`);
}
if (networkFilter) {
execArgs.push('-i', `${networkFilter}`);
}
if (overrideBranch) {
execArgs.push('-B', `${overrideBranch}`);
}
Expand Down

0 comments on commit 6ed0d16

Please sign in to comment.