Skip to content

Commit

Permalink
test: use bin to enforce coverage thresholds (yargs#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Mar 7, 2020
1 parent 88f36c3 commit 87e0a21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Expand Up @@ -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 }}"
1 change: 0 additions & 1 deletion 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)

Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down

0 comments on commit 87e0a21

Please sign in to comment.