Skip to content

Commit f56fbbb

Browse files
[MOB-11001] adding codecov to web-sdk (#487)
1 parent 6cca807 commit f56fbbb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ jobs:
2626
- run: yarn prepublishOnly
2727
- run: node index.node.js
2828
- run: yarn test
29+
- name: Upload coverage reports to Codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
2933
- run: yarn check-deps

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"start:all:react": "concurrently \"yarn start\" \"cd react-example && yarn start\" -n 'module,website' -k",
5353
"build": "ttsc && babel src --out-dir ./dist --extensions '.ts,.tsx' && webpack",
5454
"build:node": "yarn build --config webpack.node.config.js",
55-
"test": "jest --config jest.config.js --collectCoverage",
55+
"test": "jest --config jest.config.js --coverage",
5656
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"src/**/*.{js}\" \"example/src/**/*.{ts,tsx}\" \"example/src/**/*.{js}\" \"react-example/src/**/*.{ts,tsx}\" \"react-example/src/**/*.{js}\" --no-error-on-unmatched-pattern",
5757
"lint": "eslint src --ignore-pattern '*.test.*' --ignore-pattern '*.spec.*' --ext '.ts,.tsx'",
5858
"typecheck": "ttsc --noEmit true --emitDeclarationOnly false",

0 commit comments

Comments
 (0)