Skip to content

Commit d72d3bb

Browse files
committed
use installed nyc
1 parent d078b83 commit d72d3bb

File tree

4 files changed

+5811
-8207
lines changed

4 files changed

+5811
-8207
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"presets": [
3-
"es2015"
3+
"@babel/preset-env"
44
]
55
}

.github/workflows/test.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,33 @@ jobs:
2020
mongodb-version: ['4.2', '4.4']
2121

2222
steps:
23-
- name: Git checkout
24-
uses: actions/checkout@v2
25-
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v2
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
31-
- name: Start MongoDB
32-
uses: supercharge/[email protected]
33-
with:
34-
mongodb-version: ${{ matrix.mongodb-version }}
35-
36-
- run: npm install
37-
38-
- run: npm test
39-
env:
40-
CI: true
41-
42-
- run: npx nyc@latest mocha
43-
44-
- run: |
45-
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --compilers js:babel-register \
46-
&& cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js \
47-
&& rm -rf ./coverage
48-
49-
- name: Coveralls
50-
uses: coverallsapp/github-action@master
51-
with:
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Git checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v2
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: Start MongoDB
32+
uses: supercharge/[email protected]
33+
with:
34+
mongodb-version: ${{ matrix.mongodb-version }}
35+
36+
- run: npm install
37+
38+
- run: npm test
39+
env:
40+
CI: true
41+
42+
- run: npm run nyc
43+
44+
- run: |
45+
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --compilers js:@babel/register \
46+
&& cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js \
47+
&& rm -rf ./coverage
48+
49+
- name: Coveralls
50+
uses: coverallsapp/github-action@master
51+
with:
52+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)