Skip to content

Commit

Permalink
Merge pull request #36 from jsr-core/fix-ci
Browse files Browse the repository at this point in the history
chore: remove tests for Bun and refine CIs
  • Loading branch information
lambdalisue authored Aug 17, 2024
2 parents 4f9cbba + f3e6f25 commit 227e7e5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 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
33 changes: 1 addition & 32 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,37 +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

test-bun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: antongolub/action-setup-bun@v1
with:
bun-version: v1.x # Uses latest bun 1
- name: Install deps
run: |
bun install
- name: Test
run: |
# https://github.com/cross-org/test/issues/1
ls -v1 *_test.ts | xargs -n1 bun test '{}'
timeout-minutes: 5

jsr-publish:
runs-on: ubuntu-latest
steps:
Expand Down
Binary file removed bun.lockb
Binary file not shown.

0 comments on commit 227e7e5

Please sign in to comment.