diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7fbb11f..bfd2190 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 2542bd1..b4fd70d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,7 @@ /npm-debug.log* /yarn-error.log /yarn.lock +/bun.lockb +/__snapshots__ .DS_Store + diff --git a/Makefile b/Makefile index 04c3b0f..5dc389d 100644 --- a/Makefile +++ b/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) diff --git a/README.md b/README.md index 8491045..7a7b1ac 100644 --- a/README.md +++ b/README.md @@ -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.