Skip to content

Commit

Permalink
More testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
IfSentient committed Jun 5, 2024
1 parent 1eb4466 commit 2f763c7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,15 @@ jobs:
io.mv(file, substring(0, file.length - 4));
}
}
const dircompare = require('dir-compare');
const res = dircompare.compareSync('codegen-tests/cmp/ts', 'codegen-tests/ts/gen1', { compareSize: true });
print(res);
//fs.readFileSync('/my/cool/file', 'utf8');
let diff = '';
const options = {};
options.listeners = {
stdout: (data: Buffer) => {
diff += data.toString();
}
};
await exec.exec('diff', ['codegen-tests/cmp/ts', 'codegen-tests/ts/gen1'], options)
print(diff);
- name: Compare generated TypeScript code 2
run: |
cd codegen-tests
Expand Down

0 comments on commit 2f763c7

Please sign in to comment.