2019-08-06 16:37:30 -07:00
|
|
|
name: Node CI
|
2019-07-29 09:38:23 -07:00
|
|
|
|
2019-08-06 16:37:30 -07:00
|
|
|
on: [push]
|
2019-07-29 09:38:23 -07:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
2019-08-06 16:37:30 -07:00
|
|
|
|
2019-07-29 09:38:23 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
2019-08-12 05:50:58 -07:00
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
node-version: [8.x, 10.x, 12.x]
|
|
|
|
|
|
2019-08-06 16:37:30 -07:00
|
|
|
steps:
|
2019-08-14 10:43:09 -04:00
|
|
|
- uses: actions/checkout@v1
|
2019-08-12 05:50:58 -07:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2019-08-02 10:30:20 -04:00
|
|
|
uses: actions/setup-node@v1
|
2019-07-29 09:38:23 -07:00
|
|
|
with:
|
2019-08-14 14:05:28 -04:00
|
|
|
node-version: ${{ matrix.node-version }}
|
2019-07-29 09:38:23 -07:00
|
|
|
- name: npm install, build, and test
|
|
|
|
|
run: |
|
|
|
|
|
npm install
|
|
|
|
|
npm run build --if-present
|
2019-08-16 10:19:02 -07:00
|
|
|
npm test
|
|
|
|
|
env:
|
|
|
|
|
CI: true
|