Skip to content

Commit

Permalink
test(action): added more error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Feb 22, 2023
1 parent 3860da9 commit 8740e98
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ test('test runs', () => {
process.env['INPUT_REPOSITORY'] = 'kula-app/remove-stale-workflow-runs';
process.env['INPUT_MAX_RUNS_LIMIT'] = '5000';
const ip = path.join(__dirname, '../', 'dist', 'index.js');
const result = cp.execSync(`node ${ip}`, { env: process.env }).toString();
console.log(result);
const cmd = `node ${ip}`;
try {
const result = cp.execSync(cmd, { env: process.env }).toString();
console.log(result);
} catch (error) {
console.error(error);
fail(error);
}
});

0 comments on commit 8740e98

Please sign in to comment.