Skip to content

Commit

Permalink
chore: separate tests for deno and node
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Aug 17, 2024
1 parent 84af7f0 commit f3e6f25
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test (Node)

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install deps
run: |
npx jsr install
- name: Test
run: |
npx --yes tsx --test *_test.ts
timeout-minutes: 5
17 changes: 1 addition & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Type check
run: deno task check

test-deno:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -45,21 +45,6 @@ jobs:
files: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}

test-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install deps
run: |
npx jsr install
- name: Test
run: |
npx --yes tsx --test *_test.ts
timeout-minutes: 5

jsr-publish:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f3e6f25

Please sign in to comment.