- Build: Add Github workflows

- Docs: Indicate current coverage on README
This commit is contained in:
Brett Zamir
2019-11-24 17:06:07 +08:00
parent c3c9b0f54d
commit 1930d01007
4 changed files with 90 additions and 0 deletions

26
.github/workflows/nodejs.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true