-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (37 loc) · 1.08 KB
/
ci.yaml
File metadata and controls
39 lines (37 loc) · 1.08 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
name: ci
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
js: [[node, 22], [node, 24], [node, 26], [bun, latest]]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude: # https://github.com/nodejs/node/issues/56645
- js: [node, 24]
os: windows-latest
- js: [node, 26]
os: windows-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
cache: false
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
cache: pnpm
node-version: ${{matrix.js[1]}}
if: ${{matrix.js[0] == 'node'}}
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{matrix.js[1]}}
if: ${{matrix.js[0] == 'bun'}}
- run: make deps lint test
if: ${{matrix.js[0] == 'node'}}
- run: bun install && bunx --bun tsdown && bun test --timeout 180000
if: ${{matrix.js[0] == 'bun'}}