Skip to content

Commit

Permalink
bump up to v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed May 21, 2020
1 parent ac39b0e commit 59de298
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 150 deletions.
Binary file modified bin/goveralls_darwin_amd64
Binary file not shown.
Binary file modified bin/goveralls_linux_amd64
Binary file not shown.
Binary file modified bin/goveralls_windows_amd64.exe
Binary file not shown.
19 changes: 16 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
Expand All @@ -17,7 +29,8 @@ async function run() {
parallel: parseBoolean(core.getInput("parallel") || "false"),
parallel_finished: parseBoolean(core.getInput("parallel-finished") || "false"),
job_number: core.getInput("job-number"),
working_directory: core.getInput("working-directory")
working_directory: core.getInput("working-directory"),
ignore: core.getInput("ignore"),
});
}
catch (error) {
Expand Down
33 changes: 25 additions & 8 deletions lib/runner.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.goveralls = void 0;
const path = __importStar(require("path"));
const exec = __importStar(require("@actions/exec"));
async function goveralls(options) {
Expand Down Expand Up @@ -45,19 +58,23 @@ const go_environment_values = [
"GITHUB_SHA",
"GITHUB_REF",
"GITHUB_HEAD_REF",
"GITHUB_BASE_REF"
"GITHUB_BASE_REF",
];
async function run(options) {
const env = {
COVERALLS_TOKEN: options.token
COVERALLS_TOKEN: options.token,
};
for (const name of go_environment_values) {
const value = process.env[name];
if (value) {
env[name] = value;
}
}
const args = [`-coverprofile=${options.profile}`, "-service=github"];
const args = [
`-coverprofile=${options.profile}`,
"-service=github",
`-ignore=${options.ignore}`,
];
if (options.parallel) {
args.push("-parallel");
if (options.job_number !== "") {
Expand All @@ -66,12 +83,12 @@ async function run(options) {
}
await exec.exec(get_goveralls_path(), args, {
env: env,
cwd: options.working_directory
cwd: options.working_directory,
});
}
async function finish(options) {
const env = {
COVERALLS_TOKEN: options.token
COVERALLS_TOKEN: options.token,
};
for (const name of go_environment_values) {
const value = process.env[name];
Expand All @@ -82,7 +99,7 @@ async function finish(options) {
const args = ["-parallel-finish", "-service=github"];
await exec.exec(get_goveralls_path(), args, {
env: env,
cwd: options.working_directory
cwd: options.working_directory,
});
}
function get_goveralls_path() {
Expand Down
69 changes: 22 additions & 47 deletions node_modules/@actions/core/package.json

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

69 changes: 22 additions & 47 deletions node_modules/@actions/exec/package.json

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

63 changes: 19 additions & 44 deletions node_modules/@actions/io/package.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": "actions-goveralls",
"version": "1.2.4",
"version": "1.3.0",
"private": true,
"description": "Coveralls GitHub Action with Go integration powered by mattn/goveralls",
"main": "lib/main.js",
Expand Down

0 comments on commit 59de298

Please sign in to comment.