-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 828 Bytes
/
nodejs.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
name: Node CI
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
build:
strategy:
matrix:
node:
- version: 16
napi: 8
- version: 18
napi: 8
- version: 20
napi: 8
runs-on: ubuntu-latest
container:
image: node:${{ matrix.node.version }}-bookworm
env:
CI: true
steps:
- uses: actions/checkout@v1
- name: Prepare
run: |
apt-get update
apt-get install -y cmake libflac-dev flac
- name: Install
run: npm ci
- name: Build
run: |
npx cmake-js configure --CDnapi_build_version=${{ matrix.node.napi }}
npx cmake-js build
- name: Lint
run: npm run lint
- name: Test
run: npm test