-
Notifications
You must be signed in to change notification settings - Fork 81
82 lines (76 loc) · 1.82 KB
/
test.yml
File metadata and controls
82 lines (76 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Test
on:
push:
branches:
- dependabot/npm_and_yarn/**
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test-building:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run build
test_matrix:
needs: test-building
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 20
- 22
- 24
name: Node ${{ matrix.node_version }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
cache: npm
- run: npm ci
- run: npm test
test-deno:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- 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@v5
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun test
validate-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
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() }}