Skip to content

Commit ed51fe2

Browse files
authored
Merge branch 'main' into remove-eol-node-versions
2 parents 00a9b52 + ef71476 commit ed51fe2

40 files changed

+2285
-1927
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Test
2-
"on":
2+
on:
33
push:
44
branches:
55
- dependabot/npm_and_yarn/**
66
pull_request:
77
types:
88
- opened
99
- synchronize
10+
- reopened
11+
1012
jobs:
1113
test-building:
1214
runs-on: ubuntu-latest
@@ -20,8 +22,7 @@ jobs:
2022
- run: npm run build
2123

2224
test_matrix:
23-
needs:
24-
- test-building
25+
needs: test-building
2526
runs-on: ubuntu-latest
2627
strategy:
2728
matrix:
@@ -39,19 +40,43 @@ jobs:
3940
- run: npm ci
4041
- run: npm test
4142

42-
test:
43+
test-deno:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: denoland/setup-deno@v2
48+
with:
49+
deno-version: v2.x # Run with latest stable Deno.
50+
- run: deno install
51+
- run: deno test --allow-env --allow-read --allow-net --allow-sys --no-check
52+
53+
test-bun:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
- uses: oven-sh/setup-bun@v2
58+
- run: bun install
59+
- run: bun test
60+
61+
validate-typescript:
4362
runs-on: ubuntu-latest
44-
needs:
45-
- test-building
46-
- test_matrix
4763
steps:
48-
- run: exit 1
49-
if: ${{ needs.test_matrix.result != 'success' }}
5064
- uses: actions/checkout@v4
5165
- uses: actions/setup-node@v4
5266
with:
5367
cache: npm
5468
node-version: lts/*
5569
- run: npm ci
5670
- run: npm run validate:ts
71+
72+
test:
73+
runs-on: ubuntu-latest
74+
needs:
75+
- test-bun
76+
- test_matrix
77+
- test-deno
78+
- validate-typescript
79+
steps:
80+
- run: exit 1
81+
if: ${{ needs.test_matrix.result != 'success' || needs.test-bun.result != 'success' || needs.test-deno.result != 'success' }}
5782
if: ${{ always() }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.nyc_output
22
coverage
33
node_modules
4+
deno.lock
5+
bun.lock
46

57
# Build output folder
68
pkg/

0 commit comments

Comments
 (0)