Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Dec 17, 2019
1 parent 28d8e62 commit 3eb7a45
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Comment Test Coverage'
name: 'Comment Karma Test Coverage'
description: 'Read a Karma Test Coverage coverage-summary.json test report and comment stats on to commit'
inputs:
token:
Expand Down
2 changes: 0 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,8 @@ 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);

const coverage = `==== **Test Coverage** ====
Statements: ${json.total.statements.pct}% ( ${json.total.statements.covered}/${json.total.statements.total} )
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ 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);

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

0 comments on commit 3eb7a45

Please sign in to comment.