Skip to content

Commit 13bea43

Browse files
authored
Merge pull request #160 from neaps/codecov
Update codecov config
2 parents d4c87d9 + 5636e72 commit 13bea43

2 files changed

Lines changed: 9 additions & 6 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
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",

0 commit comments

Comments
 (0)