Skip to content

Commit

Permalink
add bun to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 16, 2024
1 parent e9327ab commit 096b16e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ 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:
- uses: actions/checkout@v4
- 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 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
/npm-debug.log*
/yarn-error.log
/yarn.lock
/bun.lockb
/__snapshots__
.DS_Store

5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 096b16e

Please sign in to comment.