Skip to content

Commit 8b5456b

Browse files
committed
chore: use jsbt workflow
1 parent 15ab10b commit 8b5456b

File tree

3 files changed

+10
-48
lines changed

3 files changed

+10
-48
lines changed

.github/workflows/test-js.yml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,13 @@
11
name: Run JS tests
2-
3-
# 3 different jobs are not combined into 1.
4-
# In theory, it could be less error-prone:
5-
# 1. Chokidar does huge load of IO / FS.
6-
# 2. Github CI use virtual machines which can reuse single physical machine.
7-
# 3. If same physical machine has too much IO usage, we have more chance of bugs.
8-
92
on:
103
- push
114
- pull_request
125
jobs:
13-
lint:
14-
name: Lint
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
18-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
19-
with:
20-
registry-url: 'https://registry.npmjs.org'
21-
cache: npm
22-
- run: npm install
23-
- run: npm run build --if-present
24-
- run: npm run lint --if-present
25-
node:
26-
name: Node v${{ matrix.version }} @ ${{ matrix.os }}
27-
runs-on: ${{ matrix.os }}
6+
test-js:
7+
name: 'jsbt v0.4.1'
8+
uses: paulmillr/jsbt/.github/workflows/test-js.yml@2318b9efe24831b4bd4cadf720c96f071c69c64d
289
strategy:
29-
fail-fast: false
3010
matrix:
31-
version: [18, 20, 22, 24]
3211
os: [ubuntu-latest, windows-latest, macOS-latest]
33-
steps:
34-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
35-
- name: Use Node.js ${{ matrix.version }}
36-
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
37-
with:
38-
node-version: ${{ matrix.version }}
39-
- run: npm install
40-
- run: npm run build --if-present
41-
- run: npm test
42-
bun:
43-
needs: node
44-
name: Bun
45-
runs-on: macOS-latest
46-
steps:
47-
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
48-
- uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1
49-
- run: bun install
50-
- run: bun run build
51-
- run: bun run test:bun
12+
with:
13+
runs-on: ${{ matrix.os }}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"readdirp": "^4.1.0"
3232
},
3333
"devDependencies": {
34-
"@paulmillr/jsbt": "0.3.3",
34+
"@paulmillr/jsbt": "0.4.1",
3535
"@types/node": "22.10.10",
3636
"micro-should": "0.5.1",
3737
"prettier": "3.5.2",

0 commit comments

Comments
 (0)