File tree Expand file tree Collapse file tree 3 files changed +157
-165
lines changed
Expand file tree Collapse file tree 3 files changed +157
-165
lines changed Original file line number Diff line number Diff line change @@ -70,20 +70,14 @@ jobs:
7070
7171 - name : Run tests
7272 shell : bash
73- run : |
74- if npm -ps ls nyc | grep -q nyc; then
75- npm run test-ci
76- else
77- npm test
78- fi
73+ run : npm run test-ci
7974
8075 - name : Lint code
8176 if : steps.list_env.outputs.eslint != ''
8277 run : npm run lint
8378
8479 - name : Collect code coverage
8580 uses : coverallsapp/github-action@master
86- if : steps.list_env.outputs.nyc != ''
8781 with :
8882 github-token : ${{ secrets.GITHUB_TOKEN }}
8983 flag-name : run-${{ matrix.test_number }}
Original file line number Diff line number Diff line change 1212 ],
1313 "repository" : " jshttp/content-disposition" ,
1414 "devDependencies" : {
15- "deep-equal " : " 1.0.1 " ,
15+ "c8 " : " ^10.1.2 " ,
1616 "eslint" : " 7.32.0" ,
1717 "eslint-config-standard" : " 13.0.1" ,
1818 "eslint-plugin-import" : " 2.25.3" ,
1919 "eslint-plugin-markdown" : " 2.2.1" ,
2020 "eslint-plugin-node" : " 11.1.0" ,
2121 "eslint-plugin-promise" : " 5.2.0" ,
22- "eslint-plugin-standard" : " 4.1.0" ,
23- "mocha" : " ^9.2.2" ,
24- "nyc" : " 15.1.0"
22+ "eslint-plugin-standard" : " 4.1.0"
2523 },
2624 "files" : [
2725 " LICENSE" ,
3432 },
3533 "scripts" : {
3634 "lint" : " eslint ." ,
37- "test" : " mocha --reporter spec --bail --check-leaks test/ " ,
38- "test-ci" : " nyc --reporter=lcovonly --reporter=text npm test" ,
39- "test-cov" : " nyc --reporter=html --reporter=text npm test"
35+ "test" : " node --test --test-reporter spec " ,
36+ "test-ci" : " c8 --reporter=lcovonly --reporter=text npm test" ,
37+ "test-cov" : " c8 --reporter=html --reporter=text npm test"
4038 }
4139}
You can’t perform that action at this time.
0 commit comments