-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 991 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
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
node: [16, 20]
os: [ubuntu-22.04]
include:
- node: 16
os: macos-12
- node: 20
os: macos-12
runs-on: ${{ matrix.os }}
steps:
- name: Install node-gyp deps
run: |
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
sudo apt-get install -y autoconf make libtool automake
else
brew install autoconf automake libtool
fi
python --version
python -m pip install packaging setuptools
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test