File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ jobs:
1111 - name : Install modules
1212 run : npm install
1313
14- - name : Install codecov
15- run : npm install -g codecov
14+ - name : Test build
15+ run : npm run build
1616
1717 - name : Test
1818 run : npm run ci
1919
20- - name : Test build
21- run : npm run build
20+ - name : Report coverage
21+ uses : codecov/codecov-action@v5
22+ with :
23+ fail_ci_if_error : true
24+ files : ./coverage/lcov.info
Original file line number Diff line number Diff line change 2626 "scripts" : {
2727 "test" : " mocha --recursive" ,
2828 "lint" : " eslint ./src" ,
29- "coverage" : " c8 --reporter=lcov mocha --recursive && codecov " ,
30- "ci" : " run-s lint test coverage" ,
29+ "coverage" : " c8 --reporter=lcov mocha --recursive" ,
30+ "ci" : " run-s lint coverage" ,
3131 "build:rollup" : " rollup --config rollup.config.js" ,
3232 "build:uglify" : " uglifyjs ./dist/web/tide-predictor.js -o ./dist/web/tide-predictor.min.js" ,
3333 "build:commonDist" : " echo \" {\\\" type\\\" :\\\" commonjs\\\" }\" > ./dist/commonjs/package.json" ,
You can’t perform that action at this time.
0 commit comments