Skip to content

Commit 7fc3dca

Browse files
add codecov
1 parent 8e68405 commit 7fc3dca

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/push.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,19 @@ jobs:
111111
run: yarn lint
112112
- name: spell
113113
run: yarn cspell
114+
- name: cover
115+
if: contains(github.ref, 'refs/heads/master')
116+
run: yarn codecov
117+
env:
118+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
114119
- name: test
120+
if: "!contains(github.ref, 'refs/heads/master')"
115121
run: yarn test
116122

117123
cypress:
118124
name: Cypress
119125
needs: build
120-
if: contains(github.ref, 'refs/tags') || contains(github.ref, 'refs/heads')
126+
if: contains(github.ref, 'refs/tags') || contains(github.ref, 'refs/heads/master')
121127
services:
122128
mongo:
123129
image: mongo:3.4.23

0 commit comments

Comments
 (0)