-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 998 Bytes
/
Copy pathtest.yml
File metadata and controls
50 lines (40 loc) · 998 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test
concurrency:
group: test-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Test on Node.js ${{ matrix.node }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node: [22, 24]
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
with:
persist-credentials: false
lfs: true
- name: Setup Bun
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun lint
- name: Type check
run: bun typecheck
- name: Test
run: bun test
- name: Build
run: bun run build