Skip to content

Commit

Permalink
ci: add bun to test matrix, measure coverage, enable CC reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 17, 2023
1 parent eb03419 commit f80bbc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ jobs:
- name: Run tests
timeout-minutes: 2
run: bun test:bun
run: bun run test:bun
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Requirements
* Node.js >= 16.0.0
* Bun >= 1.0.12

## Install
```shell
Expand Down
5 changes: 4 additions & 1 deletion src/main/js/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ export const $ = new DeepProxy(_$, ({name, DEFAULT, target: t, trapName, args})
return DEFAULT
}
const env = t.env
t.env = {...t.env, PATH: npmRunPath({cwd: t.cwd})}
try {
console.log('PATH0=', t.env.PATH)
const PATH = npmRunPath({cwd: t.cwd})
console.log('PATH1=', PATH)
t.env = {...t.env, PATH}
return t(...args)
} finally {
t.env = env
Expand Down

0 comments on commit f80bbc2

Please sign in to comment.