mirror of
https://github.com/hanzoai/cookie-parser.git
synced 2026-09-24 16:58:03 +00:00
build: use nyc for coverage testing
This commit is contained in:
+12
-12
@@ -34,43 +34,43 @@ jobs:
|
||||
- name: Node.js 0.8
|
||||
node-version: "0.8"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-rm: istanbul
|
||||
npm-rm: nyc
|
||||
|
||||
- name: Node.js 0.10
|
||||
node-version: "0.10"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: Node.js 0.12
|
||||
node-version: "0.12"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: io.js 1.x
|
||||
node-version: "1.8"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: io.js 2.x
|
||||
node-version: "2.5"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: io.js 3.x
|
||||
node-version: "3.3"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: Node.js 4.x
|
||||
node-version: "4.9"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: Node.js 5.x
|
||||
node-version: "5.12"
|
||||
npm-i: [email protected] [email protected]
|
||||
npm-i: [email protected] [email protected] [email protected]
|
||||
|
||||
- name: Node.js 6.x
|
||||
node-version: "6.17"
|
||||
npm-i: [email protected]
|
||||
npm-i: [email protected] [email protected]
|
||||
|
||||
- name: Node.js 7.x
|
||||
node-version: "7.10"
|
||||
npm-i: [email protected]
|
||||
npm-i: [email protected] [email protected]
|
||||
|
||||
- name: Node.js 8.x
|
||||
node-version: "8.17"
|
||||
@@ -154,7 +154,7 @@ jobs:
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: |
|
||||
if npm -ps ls istanbul | grep -q istanbul; then
|
||||
if npm -ps ls nyc | grep -q nyc; then
|
||||
npm run test-ci
|
||||
else
|
||||
npm test
|
||||
@@ -166,7 +166,7 @@ jobs:
|
||||
|
||||
- name: Collect code coverage
|
||||
uses: coverallsapp/github-action@master
|
||||
if: steps.list_env.outputs.istanbul != ''
|
||||
if: steps.list_env.outputs.nyc != ''
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
flag-name: run-${{ matrix.test_number }}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
.nyc_output
|
||||
coverage
|
||||
node_modules
|
||||
package-lock.json
|
||||
|
||||
+3
-3
@@ -24,8 +24,8 @@
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-promise": "4.3.1",
|
||||
"eslint-plugin-standard": "4.0.1",
|
||||
"istanbul": "0.4.5",
|
||||
"mocha": "8.4.0",
|
||||
"nyc": "15.1.0",
|
||||
"supertest": "6.1.6"
|
||||
},
|
||||
"files": [
|
||||
@@ -39,7 +39,7 @@
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"test": "mocha --reporter spec --bail --check-leaks test/",
|
||||
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
|
||||
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
||||
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user