node-serialport-bindings-cpp/.github/workflows/test.yml
Francis Gulotta e0c232c77a
chore: build on node 14 and drop node 8 and 32bit linux builds (#2079)
- Build binaries on node 14 and test on node 14
- Node 14 is no longer being built for 32bit linux, not much I can do.
- Node 8 is out of LTS so it’s gone https://github.com/nodejs/Release#release-schedule

BREAKING CHANGE: Dropping node 8 and 32bit linux builds
2020-05-10 01:16:58 -04:00

39 lines
1.1 KiB
YAML

name: Test
on:
push:
branches:
- '**'
# pull_request:
# types: [opened, synchronize]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# https://github.com/nodejs/node-gyp/issues/1663#issuecomment-535049449
- name: patch node gyp on windows to support Visual Studio 2019
if: matrix.os == 'windows-latest'
shell: powershell
run: |
npm install --global node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: upgrade npm
run: npm install -g npm
- name: npm install
run: npm install
- name: npm run rebuild
run: npm run rebuild
- name: npm test
run: npm test
- name: coverage
run: npm run coverage
env:
CI: true