Skip to content

Commit

Permalink
fix dryrun input parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
aquiladev committed Apr 30, 2020
1 parent 8b612bd commit ef0061f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const cp = require('child_process');
const path = require('path');

describe.skip('DDNS: Integration tests', () => {
test('test runs', () => {
const ip = path.join(__dirname, 'index.js');
console.log(ip)
try {
cp.execSync(`node ${ip}`, {
env: {
INPUT_MNEMONIC: process.env.DEV_PKEY,
INPUT_RPC: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
INPUT_NAME: 'ddns-action.eth',
INPUT_CONTENTTYPE: 'ipfs-ns',
INPUT_CONTENTHASH: 'QmWXBwcDSyDuiJhG4JAgJY7GBVbC6puyHQge1WD6rqv9nY',
INPUT_DRYRUN: false,
INPUT_VERBOSE: true
},
stdio: 'inherit'
});
} catch {
fail();
}
});
});
2 changes: 1 addition & 1 deletion runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function run() {
const name = core.getInput('name');
const contentHash = core.getInput('contentHash');
const contentType = core.getInput('contentType');
const dryrun = core.getInput('dryRun');
const dryrun = (core.getInput('dryRun') === 'true');
const verbose = (core.getInput('verbose') === 'true');

await updater.update({ mnemonic, rpc, name, contentHash, contentType, dryrun, verbose })
Expand Down

0 comments on commit ef0061f

Please sign in to comment.