Skip to content

Commit 0d0b711

Browse files
committed
Update codecov config
1 parent d4c87d9 commit 0d0b711

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"test": "mocha --recursive",
2828
"lint": "eslint ./src",
29-
"coverage": "c8 --reporter=lcov mocha --recursive && codecov",
29+
"coverage": "c8 --reporter=lcov mocha --recursive",
3030
"ci": "run-s lint test 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",

0 commit comments

Comments
 (0)