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" },