test: collect and publish code coverage
This commit is contained in:
parent
5e3dedcd72
commit
e1fd4dc476
9
.github/workflows/node.js.yml
vendored
9
.github/workflows/node.js.yml
vendored
@ -27,5 +27,10 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build
|
||||||
- run: npm test
|
- run: npm run lint
|
||||||
|
- run: npm run coverage
|
||||||
|
- name: Publish code coverage to CodeClimate
|
||||||
|
uses: paambaati/codeclimate-action@v3.2.0
|
||||||
|
env:
|
||||||
|
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
lib-cov
|
.nyc_output
|
||||||
*.seed
|
*.seed
|
||||||
*.log
|
*.log
|
||||||
*.csv
|
*.csv
|
||||||
@ -17,4 +17,4 @@ npm-debug.log
|
|||||||
|
|
||||||
.idea
|
.idea
|
||||||
.cache
|
.cache
|
||||||
.vscode
|
.vscode
|
||||||
|
2368
package-lock.json
generated
2368
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,7 @@
|
|||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"prebuild": "npm run lint",
|
"prebuild": "npm run lint",
|
||||||
"test": "npm run lint && mocha -r ts-node/register \"test/**/*\"",
|
"test": "npm run lint && mocha -r ts-node/register \"test/**/*\"",
|
||||||
|
"coverage": "nyc mocha -r ts-node/register \"test/**/*\"",
|
||||||
"start": "bin/peerjs --port ${PORT:=9000}",
|
"start": "bin/peerjs --port ${PORT:=9000}",
|
||||||
"dev:start": "npm-run-all build start",
|
"dev:start": "npm-run-all build start",
|
||||||
"dev": "nodemon --watch src -e ts --exec npm run dev:start",
|
"dev": "nodemon --watch src -e ts --exec npm run dev:start",
|
||||||
@ -62,6 +63,7 @@
|
|||||||
"mock-socket": "8.0.5",
|
"mock-socket": "8.0.5",
|
||||||
"nodemon": "^2.0.20",
|
"nodemon": "^2.0.20",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
|
"nyc": "^15.1.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"semantic-release": "^19.0.5",
|
"semantic-release": "^19.0.5",
|
||||||
"sinon": "^7.5.0",
|
"sinon": "^7.5.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user