Skip to content

Commit 6e83508

Browse files
committed
Add coverage to CI
1 parent 6093f43 commit 6e83508

File tree

3 files changed

+323
-245
lines changed

3 files changed

+323
-245
lines changed

.drone.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ steps:
3737
commands:
3838
- MONGO_URL=mongodb://mongodb:27017/vote-test REDIS_URL=redis yarn mocha
3939

40+
- name: coverage
41+
image: node:13
42+
when:
43+
event:
44+
- pull_request
45+
depends_on:
46+
- test
47+
commands:
48+
- yarn coverage
49+
environment:
50+
COVERALLS_REPO_TOKEN:
51+
from_secret: coveralls_token
52+
COVERALLS_SERVICE_NAME: drone
53+
COVERALLS_GIT_BRANCH: ${DRONE_BRANCH}
54+
COVERALLS_SERVICE_NUMBER: ${DRONE_BUILD_NUMBER}
55+
4056
- name: build
4157
image: node:13
4258
when:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"method-override": "3.0.0",
5555
"mongoose": "5.8.1",
5656
"nib": "1.1.2",
57-
"nyc": "14.1.1",
57+
"nyc": "15.1.0",
5858
"object-assign": "4.1.1",
5959
"passport": "0.4.0",
6060
"passport-local": "1.0.0",

0 commit comments

Comments
 (0)