From 79bc0f5e12314695de657730a188d8062bca324d Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 17 Nov 2023 17:30:05 +0300 Subject: [PATCH] ci: add bun to test matrix, measure coverage, enable CC reporting --- .github/workflows/ci.yaml | 2 +- README.md | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 109c578..44b6453 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -91,4 +91,4 @@ jobs: - name: Run tests timeout-minutes: 2 - run: bun test:bun + run: bun run test:bun diff --git a/README.md b/README.md index b61fb74..7e33268 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ## Requirements * Node.js >= 16.0.0 +* Bun >= 1.0.12 ## Install ```shell diff --git a/package.json b/package.json index 620c114..7043728 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "test": "PATH=$(env -i bash -c 'echo $PATH') node ./src/main/js/cli.mjs ./src/test/js/test.mjs --quiet", "test:cov": "c8 npm run test && c8 report -r lcov", - "test:bun": "bun ./src/main/js/cli.mjs ./src/test/js/test.mjs --quiet", + "test:bun": "PATH=$(env -i bash -c 'echo $PATH') bun ./src/main/js/cli.mjs ./src/test/js/test.mjs --quiet", "publish:byhand": "npm publish --no-git-tag-version", "publish:beta": "npm publish --no-git-tag-version --tag beta", "publish:rc": "npm publish --no-git-tag-version --tag rc"