From 92aeb1bf77370b9401e7247132a664d68dab0c34 Mon Sep 17 00:00:00 2001 From: Geoff Kim Date: Mon, 14 Apr 2025 10:59:00 -0700 Subject: [PATCH] [MOB-11001] adding codecov to web-sdk --- .github/workflows/ci.yml | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19fea07c..74650e37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,4 +26,8 @@ jobs: - run: yarn prepublishOnly - run: node index.node.js - run: yarn test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} - run: yarn check-deps diff --git a/package.json b/package.json index c5a73387..bd71933a 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "start:all:react": "concurrently \"yarn start\" \"cd react-example && yarn start\" -n 'module,website' -k", "build": "ttsc && babel src --out-dir ./dist --extensions '.ts,.tsx' && webpack", "build:node": "yarn build --config webpack.node.config.js", - "test": "jest --config jest.config.js --collectCoverage", + "test": "jest --config jest.config.js --coverage", "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", "lint": "eslint src --ignore-pattern '*.test.*' --ignore-pattern '*.spec.*' --ext '.ts,.tsx'", "typecheck": "ttsc --noEmit true --emitDeclarationOnly false",