-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (28 loc) · 788 Bytes
/
Copy pathci.yaml
File metadata and controls
30 lines (28 loc) · 788 Bytes
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
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]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v6
- 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 lint test
if: ${{matrix.js[0] == 'node'}}
- run: bun install && bun test
if: ${{matrix.js[0] == 'bun'}}