Skip to content

Commit

Permalink
eliminates more stuff and includes last change
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Sep 6, 2019
1 parent bdaa249 commit 6594aa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions __tests__/main.test.ts

This file was deleted.

7 changes: 6 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ function run() {
files.forEach(function (file) {
file.chunks.forEach(function (chunk) {
chunk.changes.forEach(function (change) {
console.log(change);
if (change.add) {
changes += change.content;
}
});
});
});
if (changes.indexOf(diffContains) < 0) {
core.setFailed("The added code does not contain " + diffContains);
}
}
catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit 6594aa9

Please sign in to comment.