-
Notifications
You must be signed in to change notification settings - Fork 74
49 lines (46 loc) · 1.14 KB
/
ci.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
45
46
47
48
49
name: CI
on:
- push
- pull_request
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [20, 18, 16]
os: [windows-2019, macos-11, ubuntu-22.04]
arch: [x64]
include:
- os: windows-2019
arch: x86
node: 20
- os: windows-2019
arch: x86
node: "18.18.2" # pinned to avoid 18.19.0 and npm 10
- os: windows-2019
arch: x86
node: 16
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.arch }}
- name: Install
run: npm install
env:
npm_config_arch: ${{ matrix.arch }}
TARGET_ARCH: ${{ matrix.arch }}
- name: Test
run: npm test