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-06 16:37:30 -07:00
|
|
|
steps:
|
2019-07-29 09:38:23 -07:00
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
- name: Use Node.js 10.x
|
2019-08-02 10:30:20 -04:00
|
|
|
uses: actions/setup-node@v1
|
2019-07-29 09:38:23 -07:00
|
|
|
with:
|
|
|
|
|
version: 10.x
|
|
|
|
|
- name: npm install, build, and test
|
|
|
|
|
run: |
|
|
|
|
|
npm install
|
|
|
|
|
npm run build --if-present
|
|
|
|
|
npm test
|