Skip to content

Commit

Permalink
add logging back in
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Dec 17, 2019
1 parent 3eb7a45 commit 2ff2721
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,18 @@ async function run() {
const sha = process.env.GITHUB_SHA;
core.debug(`SHA: ${sha}`);

console.log(`about to read: ${process.env.GITHUB_WORKSPACE}/${inputs.path}`)
const data = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/${inputs.path}`, 'utf8');
const json = JSON.parse(data);
console.log(json);

fs.readdir(process.env.GITHUB_WORKSPACE, function (err, items) {
console.log(items);

for (var i = 0; i < items.length; i++) {
console.log(items[i]);
}
});

const coverage = `==== **Test Coverage** ====
Statements: ${json.total.statements.pct}% ( ${json.total.statements.covered}/${json.total.statements.total} )
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ async function run() {
const sha = process.env.GITHUB_SHA;
core.debug(`SHA: ${sha}`);

console.log(`about to read: ${process.env.GITHUB_WORKSPACE}/${inputs.path}`)
const data = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/${inputs.path}`, 'utf8');
const json = JSON.parse(data);
console.log(json);

fs.readdir(process.env.GITHUB_WORKSPACE, function (err, items) {
console.log(items);

for (var i = 0; i < items.length; i++) {
console.log(items[i]);
}
});

const coverage = `==== **Test Coverage** ====
Statements: ${json.total.statements.pct}% ( ${json.total.statements.covered}/${json.total.statements.total} )
Expand Down

0 comments on commit 2ff2721

Please sign in to comment.