Skip to content

Commit e30bb1f

Browse files
committed
chore github action change to nyc and run test once
1 parent 01ebb27 commit e30bb1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
- name: Setup dependencies
2020
run: |
2121
npm install
22-
npm install -g istanbul
22+
# nyc@14 support nodejs >= 6
23+
npm install -g nyc@14
2324
- name: Run cases
2425
run: |
2526
npm run check-type
26-
npm test
27-
istanbul cover ./node_modules/mocha/bin/_mocha --reporter test -- -R spec
27+
nyc --reporter=lcov npm test
2828
env:
2929
QINIU_ACCESS_KEY: ${{ secrets.QINIU_ACCESS_KEY }}
3030
QINIU_SECRET_KEY: ${{ secrets.QINIU_SECRET_KEY }}

0 commit comments

Comments
 (0)