add CI file for github actions
This commit is contained in:
parent
2fb975d9a8
commit
f2a6b048bd
17
.github/workspaces/ci.yml
vendored
Normal file
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",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha --timeout 10000 --exit",
|
"test": "mocha --timeout 10000 --exit",
|
||||||
"coverage": "nyc npm test",
|
"coverage": "nyc --reporter=lcov npm test",
|
||||||
"lint": "./node_modules/.bin/eslint .",
|
"lint": "./node_modules/.bin/eslint .",
|
||||||
"lintfix": "./node_modules/.bin/eslint . --fix"
|
"lintfix": "./node_modules/.bin/eslint . --fix"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user