Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
Fixes bool arguments and if expressions (#3)
Browse files Browse the repository at this point in the history
* fixes bool arguments

* if expression fix
  • Loading branch information
tonyredondo authored Mar 14, 2020
1 parent 7dd36d4 commit 05d0ec4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,10 +926,10 @@ async function run() {
const dsn = core.getInput('dsn') || process.env[SCOPE_DSN];
const test_command = core.getInput('test-command');
const benchmark_command = core.getInput('benchmark-command');
const auto_instrument = core.getInput('auto-instrument') || 'true';
const enable_benchmarks = core.getInput('enable-benchmarks') || 'true';
const race_detector = core.getInput('race-detector') || 'false';
const no_parallel = core.getInput('no-parallel') || 'false';
const auto_instrument = (core.getInput('auto-instrument') || 'true') === 'true';
const enable_benchmarks = (core.getInput('enable-benchmarks') || 'true') === 'true';
const race_detector = (core.getInput('race-detector') || 'false') === 'true';
const no_parallel = (core.getInput('no-parallel') || 'false') === 'true';
const version = core.getInput('version') || '';

let envVars = Object.assign({}, process.env);
Expand Down Expand Up @@ -971,7 +971,7 @@ async function run() {
bCommand = benchmark_command;
}

if (auto_instrument === "true") {
if (auto_instrument) {
core.info("Installing Agent installer...");
await exec.exec(`go get -v github.com/undefinedlabs/scope-go-agent-installer`, null, execOptions);
core.info("Executing installer...");
Expand All @@ -988,7 +988,7 @@ async function run() {
core.info("Running Tests...");
const testExitCode = await exec.exec(tCommand, null, execOptions);

if (enable_benchmarks === "true") {
if (enable_benchmarks) {
core.info("Running Benchmarks...");
await exec.exec(bCommand, null, execOptions);
}
Expand Down
12 changes: 6 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ async function run() {
const dsn = core.getInput('dsn') || process.env[SCOPE_DSN];
const test_command = core.getInput('test-command');
const benchmark_command = core.getInput('benchmark-command');
const auto_instrument = core.getInput('auto-instrument') || 'true';
const enable_benchmarks = core.getInput('enable-benchmarks') || 'true';
const race_detector = core.getInput('race-detector') || 'false';
const no_parallel = core.getInput('no-parallel') || 'false';
const auto_instrument = (core.getInput('auto-instrument') || 'true') === 'true';
const enable_benchmarks = (core.getInput('enable-benchmarks') || 'true') === 'true';
const race_detector = (core.getInput('race-detector') || 'false') === 'true';
const no_parallel = (core.getInput('no-parallel') || 'false') === 'true';
const version = core.getInput('version') || '';

let envVars = Object.assign({}, process.env);
Expand Down Expand Up @@ -56,7 +56,7 @@ async function run() {
bCommand = benchmark_command;
}

if (auto_instrument === "true") {
if (auto_instrument) {
core.info("Installing Agent installer...");
await exec.exec(`go get -v github.com/undefinedlabs/scope-go-agent-installer`, null, execOptions);
core.info("Executing installer...");
Expand All @@ -73,7 +73,7 @@ async function run() {
core.info("Running Tests...");
const testExitCode = await exec.exec(tCommand, null, execOptions);

if (enable_benchmarks === "true") {
if (enable_benchmarks) {
core.info("Running Benchmarks...");
await exec.exec(bCommand, null, execOptions);
}
Expand Down

0 comments on commit 05d0ec4

Please sign in to comment.