From 87e0a2136156fb45a0bd8102472915a75697a2e0 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Sat, 7 Mar 2020 11:26:59 -0800 Subject: [PATCH] test: use bin to enforce coverage thresholds (#256) --- .github/workflows/ci.yaml | 5 +---- README.md | 1 - package.json | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 00dea345..82416464 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,10 +33,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 13 - run: npm install - run: npm test - run: npm run coverage - env: - COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}" - COVERALLS_GIT_BRANCH: "${{ github.ref }}" diff --git a/README.md b/README.md index 6e9ea796..bae61c2a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # yargs-parser [![Build Status](https://travis-ci.org/yargs/yargs-parser.svg)](https://travis-ci.org/yargs/yargs-parser) -[![Coverage Status](https://coveralls.io/repos/yargs/yargs-parser/badge.svg?branch=)](https://coveralls.io/r/yargs/yargs-parser?branch=master) [![NPM version](https://img.shields.io/npm/v/yargs-parser.svg)](https://www.npmjs.com/package/yargs-parser) [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) diff --git a/package.json b/package.json index 5a491651..74ba716b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "fix": "standard --fix", "test": "c8 --reporter=text --reporter=html mocha test/*.js", "posttest": "standard", - "coverage": "c8 report --reporter=text-lcov | coveralls" + "coverage": "c8 report --check-coverage check-coverage --lines=100 --branches=97 --statements=100" }, "repository": { "type": "git", @@ -29,7 +29,6 @@ "devDependencies": { "c8": "^7.0.1", "chai": "^4.2.0", - "coveralls": "^3.0.2", "mocha": "^7.0.0", "standard": "^14.3.1" },