add bun to ci
This commit is contained in:
parent
e9327abafc
commit
096b16ed1a
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
@ -7,7 +7,8 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node: [18, 20]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
bun: [latest]
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -15,4 +16,8 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{matrix.node}}
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: ${{matrix.bun}}
|
||||
- run: make lint test
|
||||
- run: bun test
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,4 +4,7 @@
|
||||
/npm-debug.log*
|
||||
/yarn-error.log
|
||||
/yarn.lock
|
||||
/bun.lockb
|
||||
/__snapshots__
|
||||
.DS_Store
|
||||
|
||||
|
5
Makefile
5
Makefile
@ -24,6 +24,11 @@ test: node_modules build
|
||||
test-update: node_modules build
|
||||
npx vitest -u
|
||||
|
||||
.PHONY: test
|
||||
test-bun: node_modules build
|
||||
bun test
|
||||
rm -rf __snapshots__
|
||||
|
||||
.PHONY: build
|
||||
build: $(DST)
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
|
||||
# Usage
|
||||
|
||||
`bun` and `node` are supported and tested. For bun, replace `npx` with `bunx` and `npm` with `bun`.
|
||||
|
||||
```bash
|
||||
# check for updates
|
||||
npx updates
|
||||
@ -15,13 +17,6 @@ npx updates
|
||||
npx updates -u && npm i
|
||||
```
|
||||
|
||||
## Bun and Deno
|
||||
|
||||
```bash
|
||||
bunx updates
|
||||
deno run -A npm:updates
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times.
|
||||
|
Loading…
Reference in New Issue
Block a user