Skip to content

Commit 0c05950

Browse files
committed
ci: fix test failure, run on push, add --parallel
1 parent 1c19523 commit 0c05950

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI
22

33
on:
4+
push:
5+
branches: [main]
46
pull_request:
57
paths:
68
- deno.json

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"tasks": {
19-
"test": "deno test --unstable -A",
19+
"test": "deno test --unstable -A --parallel",
2020
"typecheck": "deno check --unstable ./mod.ts",
2121
"dnt": ".github/deno-to-node.ts"
2222
},

src/utils/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function flatmap<S, T>(t: Promise<T | Falsy> | (T | Falsy), body: (t: T)
7878
.then(body => body || undefined)
7979
.catch(err => { if (!opts?.rescue) throw err; else return undefined } )
8080
return bar
81-
})
81+
}).catch(err => { if (!opts?.rescue) throw err; else return undefined } )
8282
return foo
8383
} else {
8484
if (t) return body(t) as (S | Falsy) || undefined

0 commit comments

Comments
 (0)