-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (34 loc) · 863 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
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2019, macos-latest, macos-13]
node-version: [10, 18]
exclude:
- os: macos-13
node-version: 10
name: ${{ matrix.os }} (v${{ matrix.node-version }})
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Update node-gyp
if: matrix.os == 'macos-13'
run: npm install -g node-gyp
- name: Install npm dependencies
run: npm ci --ignore-scripts
- name: Build artifact
run: npm run build
- name: Run tests
run: npm run test