Skip to content

Commit f3e6f25

Browse files
committed
chore: separate tests for deno and node
1 parent 84af7f0 commit f3e6f25

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

.github/workflows/test-node.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test (Node)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22.x
18+
- name: Install deps
19+
run: |
20+
npx jsr install
21+
- name: Test
22+
run: |
23+
npx --yes tsx --test *_test.ts
24+
timeout-minutes: 5

.github/workflows/test.yml

+1-16
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Type check
2727
run: deno task check
2828

29-
test-deno:
29+
test:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
@@ -45,21 +45,6 @@ jobs:
4545
files: ./coverage.lcov
4646
token: ${{ secrets.CODECOV_TOKEN }}
4747

48-
test-node:
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v4
52-
- uses: actions/setup-node@v4
53-
with:
54-
node-version: 22.x
55-
- name: Install deps
56-
run: |
57-
npx jsr install
58-
- name: Test
59-
run: |
60-
npx --yes tsx --test *_test.ts
61-
timeout-minutes: 5
62-
6348
jsr-publish:
6449
runs-on: ubuntu-latest
6550
steps:

0 commit comments

Comments
 (0)