File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed
Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ on: [push]
44
55jobs :
66 build :
7-
87 runs-on : ubuntu-latest
9-
108 strategy :
119 matrix :
1210 node-version : [10.x, 11.x, 12.x, 13.x]
@@ -20,14 +18,23 @@ jobs:
2018 - run : npm install
2119 - run : npm run build --if-present
2220 - run : npm test
23- - run : ./node_modules/.bin/nyc report --reporter=json
24- - run : mv coverage/coverage-final.json coverage/coverage.json
25- - name : Upload coverage to Codecov
26- uses : codecov/codecov-action@v1
27- with :
28- token : ${{ secrets.CODECOV_TOKEN }}
29- file : coverage/coverage.json
30- name : codecov
31- fail_ci_if_error : true
3221 env :
3322 CI : true
23+
24+ codecov :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v2
28+ - uses : actions/setup-node@v1
29+ with :
30+ node-version : 12
31+ - run : npm install
32+ - run : ./node_modules/.bin/nyc report --reporter=json
33+ - run : mv coverage/coverage-final.json coverage/coverage.json
34+ - name : Upload coverage to Codecov
35+ uses : codecov/codecov-action@v1
36+ with :
37+ token : ${{ secrets.CODECOV_TOKEN }}
38+ file : coverage/coverage.json
39+ name : codecov
40+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments