-
Notifications
You must be signed in to change notification settings - Fork 398
43 lines (41 loc) · 1.21 KB
/
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
name: Build & Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
strategy:
matrix:
node: [16, 18, 20, 21]
os: [ubuntu-22.04]
include:
# single mac test due to minute multipliers
# https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions
- node: 20
os: macos-14
# single windows test due to node.js 14 node-gyp / vs 2022 issues
- node: 20
os: windows-2022
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Node ${{ matrix.node }} in ${{ runner.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Update node-gyp
run: npm install --global node-gyp@latest
- name: Install Windows packages
if: runner.os == 'Windows'
run: ./win_install.ps1
- name: Build
run: npm ci
# skipping on windows for now due to Make / mocha exit code issues
- name: Test
if: runner.os != 'Windows'
run: npm test