forked from mattrglobal/node-bbs-signatures
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.15 KB
/
any-pr.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
name: any-pr
on: [pull_request]
jobs:
build_test:
name: Build test
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
os: [macos-latest, ubuntu-latest] # not include windows due to node-gyp bug
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# Logging python version for future debugging
- run: python -V
# Required as macos-14 defaults to use python 3.12, this causes issues with node-gyp currently
# 1. node-gyp depends on distutils package which has now been removed in python version 3.12 can use 'pip install setuptools' to fix this
# 2. Node@14 will error with -> Node gyp ERR - invalid mode: 'rU' while trying to load binding.gyp Where 'U' option is now deprecated
- uses: actions/setup-python@v4
with:
python-version: "3.10.8"
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test --coverage
- run: yarn benchmark