-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (33 loc) · 847 Bytes
/
test.yml
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
name: Test
on: push
jobs:
test:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node: [20, 22, 23]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node }}
- name: Install node-gyp
run: pnpm add -g node-gyp
- run: pnpm install
env:
NO_PREBUILD: true
- name: Build Addon
run: node-gyp rebuild
# worker_threads needs js output
- name: Test
run: |
pnpm run compile:ts
pnpm run test:coverage
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}