2019-08-22 06:59:06 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-2016
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2019-10-08 23:47:53 +00:00
|
|
|
node-version: 10
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Configure Visual Studio version
|
2019-10-09 17:21:42 +00:00
|
|
|
run: npm config set msvs_version 2017
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
2019-10-09 17:36:58 +00:00
|
|
|
env:
|
|
|
|
GYP_MSVS_VERSION: 2017
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|
|
|
|
Mac:
|
|
|
|
name: Mac
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2019-10-08 23:47:53 +00:00
|
|
|
node-version: 10
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|
|
|
|
Linux:
|
|
|
|
name: Ubuntu
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2019-10-08 23:47:53 +00:00
|
|
|
node-version: 10
|
2019-08-22 06:59:06 +00:00
|
|
|
- name: Install OS packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libcurl4-openssl-dev
|
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|