Skip to content

Commit 8295a7e

Browse files
committed
fix(tests): change how tests are run
1 parent c7fab6c commit 8295a7e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: graphql_ppx_re pipeline
22

33
on:
4+
pull_request:
5+
branches:
6+
- master
47
push:
58
branches-ignore:
69
- master

tests_bucklescript/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function command(cmd) {
44
console.log(cmd);
55
return new Promise((resolve, reject) => {
66
const process = exec(cmd, (error, stdout, stderr) => {
7-
if (error) console.warn(error);
7+
if (error) reject(error);
88
resolve(stdout ? stdout : stderr);
99
});
1010
process.stdout.on("data", function(data) {
@@ -27,7 +27,7 @@ async function test(folder) {
2727
await command(`cp ./${folder}/* .`);
2828
await command("npm install");
2929
await command("npm run test");
30-
// await cleanup();
30+
await cleanup();
3131
}
3232

3333
async function run() {

0 commit comments

Comments
 (0)