Skip to content

Commit 37b8490

Browse files
authored
chore: refactor (#122)
BREAKING CHANGE: drop support for Node 16 and Node 18
1 parent a5b7b58 commit 37b8490

File tree

14 files changed

+1247
-3481
lines changed

14 files changed

+1247
-3481
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,34 @@ on:
77
types: [opened, synchronize]
88

99
jobs:
10-
test_matrix:
10+
test-deno:
11+
runs-on: ubuntu-latest
12+
needs: test-node
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: denoland/setup-deno@v2
16+
with:
17+
deno-version: v2.x # Run with latest stable Deno.
18+
- run: deno install
19+
- run: deno test --no-check
20+
21+
test-bun:
22+
runs-on: ubuntu-latest
23+
needs: test-node
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: oven-sh/setup-bun@v2
27+
- run: bun install
28+
- run: bun test
29+
30+
test-node:
1131
runs-on: ubuntu-latest
1232
strategy:
1333
matrix:
1434
node_version:
15-
- 16
16-
- 18
35+
- 20
36+
- 22
37+
- 24
1738

1839
steps:
1940
- uses: actions/checkout@v3
@@ -27,16 +48,19 @@ jobs:
2748

2849
test:
2950
runs-on: ubuntu-latest
30-
needs: test_matrix
51+
needs:
52+
- test-bun
53+
- test-deno
54+
- test-node
3155
# prevent to be taken as pass when `test_matrix` was not picked up yet
3256
if: ${{ always() }}
3357
steps:
3458
- run: exit 1
35-
if: ${{ needs.test_matrix.result != 'success' }}
59+
if: ${{ needs.test-bun.result != 'success' || needs.test-deno.result != 'success' || needs.test-node.result != 'success' }}
3660
- uses: actions/checkout@v3
3761
- uses: actions/setup-node@v3
3862
with:
39-
node-version: ${{ matrix.node_version }}
63+
node-version: 24
4064
cache: npm
4165
- run: npm ci
4266
- run: npm run test:tsc

0 commit comments

Comments
 (0)