add CI file for github actions

This commit is contained in:
Randall Schmidt 2021-06-11 13:48:18 -04:00
parent 2fb975d9a8
commit f2a6b048bd
2 changed files with 18 additions and 1 deletions

17
.github/workspaces/ci.yml vendored Normal file

@ -0,0 +1,17 @@
name: CI Pipeline
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
- run: npm run lint
- run: npm run coverage

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "mocha --timeout 10000 --exit",
"coverage": "nyc npm test",
"coverage": "nyc --reporter=lcov npm test",
"lint": "./node_modules/.bin/eslint .",
"lintfix": "./node_modules/.bin/eslint . --fix"
},