-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 988 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
44
45
46
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HUSKY: 0
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20, 22]
os: [ubuntu-latest, macos-latest, windows-latest]
name: Node v${{ matrix.node }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
architecture: x64
- name: Python version
run: python --version
- name: Install setuptools
run: pip install setuptools
- name: Install dependencies
run: npm ci
- name: Show node-gyp version
run: npm ls node-gyp
- name: Test
run: npm test