From ea89aefcd8aa47ff36abd7ee6a0aac6c1dac7001 Mon Sep 17 00:00:00 2001 From: Randall Schmidt Date: Fri, 11 Jun 2021 13:48:18 -0400 Subject: [PATCH] add CI file for github actions --- .github/workspaces/ci.yml | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workspaces/ci.yml diff --git a/.github/workspaces/ci.yml b/.github/workspaces/ci.yml new file mode 100644 index 0000000..0271ac7 --- /dev/null +++ b/.github/workspaces/ci.yml @@ -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 diff --git a/package.json b/package.json index a49d224..8d58ea7 100644 --- a/package.json +++ b/package.json @@ -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" },