Switch to using GitHub actions for CI

Also test more node versions
This commit is contained in:
Quantum 2020-09-27 14:48:22 -04:00
parent 67a8995a91
commit 1af8e64e5d
2 changed files with 23 additions and 4 deletions

23
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 10.x, 12.x, 14.x ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test

View file

@ -1,4 +0,0 @@
language: node_js
node_js:
- 10
script: npm run build && npm test