Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove tests for Bun and refine CIs #36

Merged
merged 2 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.