Skip to content

Commit 7aa0651

Browse files
authored
Merge pull request #20 from BootNodeDev/add-coverage
Add coverage
2 parents 2bf7a74 + 463d0c8 commit 7aa0651

File tree

4 files changed

+237
-8
lines changed

4 files changed

+237
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ jobs:
1818
run: npm install -g pnpm
1919
- run: pnpm install
2020
- run: pnpm run build
21-
- run: pnpm test
21+
- run: pnpm test:coverage
22+
- name: Upload coverage to Codecov
23+
uses: codecov/codecov-action@v5
24+
with:
25+
token: ${{ secrets.CODECOV_TOKEN }}
26+
flags: unittests
27+
name: codecov-umbrella

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# uniswap-dev-kit
22
[![CI](https://github.com/BootNodeDev/uni-dev-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/BootNodeDev/uni-dev-kit/actions/workflows/ci.yml)
3+
[![codecov](https://codecov.io/gh/BootNodeDev/uni-dev-kit/branch/main/graph/badge.svg)](https://codecov.io/gh/BootNodeDev/uni-dev-kit)
34
[![Release](https://github.com/BootNodeDev/uni-dev-kit/actions/workflows/release.yml/badge.svg)](https://github.com/BootNodeDev/uni-dev-kit/actions/workflows/release.yml)
45
[![Docs](https://img.shields.io/badge/docs-typedoc-blue)](https://bootnodedev.github.io/uni-dev-kit)
56
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/BootNodeDev/uni-dev-kit)

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"lint": "biome check",
2121
"lint:fix": "biome check --write",
2222
"test": "vitest run",
23+
"test:coverage": "vitest run --coverage",
2324
"test:watch": "vitest",
2425
"prepublishOnly": "npm run build",
2526
"prepare": "husky",
@@ -67,6 +68,7 @@
6768
"@types/node": "^24.3.1",
6869
"@types/react": "^19.1.13",
6970
"@types/react-dom": "^19.1.9",
71+
"@vitest/coverage-v8": "^3.2.4",
7072
"@vitest/ui": "^3.2.4",
7173
"gh-pages": "^6.3.0",
7274
"husky": "^9.1.7",

0 commit comments

Comments
 (0)