Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
46 changes: 36 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Test
"on":
on:
push:
branches:
- dependabot/npm_and_yarn/**
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test-building:
runs-on: ubuntu-latest
Expand All @@ -20,15 +22,15 @@ jobs:
- run: npm run build

test_matrix:
needs:
- test-building
needs: test-building
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 18
- 20
- 22
- 24
name: Node ${{ matrix.node_version }}
steps:
- uses: actions/checkout@v4
Expand All @@ -38,20 +40,44 @@ jobs:
cache: npm
- run: npm ci
- run: npm test

test:

test-deno:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- run: deno install
- run: deno test --allow-env --allow-read --allow-net --allow-sys --no-check

test-bun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun test

validate-typescript:
runs-on: ubuntu-latest
needs:
- test-building
- test_matrix
steps:
- run: exit 1
if: ${{ needs.test_matrix.result != 'success' }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run validate:ts

test:
runs-on: ubuntu-latest
needs:
- test-bun
- test_matrix
- test-deno
- validate-typescript
steps:
- run: exit 1
if: ${{ needs.test_matrix.result != 'success' || needs.test-bun.result != 'success' || needs.test-deno.result != 'success' }}
if: ${{ always() }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.nyc_output
coverage
node_modules
deno.lock
bun.lock

# Build output folder
pkg/
Loading