Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit efbacbe

Browse files
author
Ruben Schmidmeister
committed
Use nyc
1 parent 355b083 commit efbacbe

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
run: yarn install
2020
- name: Test
2121
run: yarn test
22+
- name: Check Code Style
23+
run: yarn lint
2224

2325
- name: Report Coverage
2426
uses: coverallsapp/github-action@master

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/npm-debug.log
22
/node_modules/
33
/yarn.lock
4+
/.nyc_output/
5+
/coverage/

.npmignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
.travis.yml
1+
/node_modules/
2+
/.nyc_output/
3+
/coverage/
4+
/yarn.lock
5+
/.github/
6+
/.editorconfig

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "A deterministic random number generator for node",
55
"main": "index.js",
66
"scripts": {
7-
"test": "standard index.js && mocha"
7+
"test": "nyc --reporter=lcov mocha",
8+
"lint": "standard index.js"
89
},
910
"repository": {
1011
"type": "git",
@@ -20,8 +21,9 @@
2021
},
2122
"homepage": "https://github.com/bash/random.js#readme",
2223
"devDependencies": {
24+
"coveralls": "^3.0.9",
2325
"mocha": "^6.2.2",
24-
"standard": "^14.3.1",
25-
"istanbul": "^0.4.5"
26+
"nyc": "^15.0.0",
27+
"standard": "^14.3.1"
2628
}
2729
}

0 commit comments

Comments
 (0)