Skip to content

Commit 4aad1cb

Browse files
committed
chore: fix coverage report
1 parent 9ce708a commit 4aad1cb

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ on:
44
push:
55
branches:
66
- main
7-
- v1
8-
- v2
97
pull_request:
108
branches:
119
- main
12-
- v1
13-
- v2
1410

1511
jobs:
1612
ci:
@@ -29,3 +25,5 @@ jobs:
2925
- run: pnpm build
3026
- run: pnpm vitest --coverage
3127
- uses: codecov/codecov-action@v4
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 🌳 rou3
22

3-
<!-- automd:badges -->
3+
<!-- automd:badges codecov -->
44

55
[![npm version](https://img.shields.io/npm/v/rou3)](https://npmjs.com/package/rou3)
66
[![npm downloads](https://img.shields.io/npm/dm/rou3)](https://npmjs.com/package/rou3)
7+
[![codecov](https://img.shields.io/codecov/c/gh/unjs/rou3)](https://codecov.io/gh/unjs/rou3)
78

89
<!-- /automd -->
910

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lint:fix": "automd && eslint --fix . && prettier -w src tests benchmark",
3434
"playground": "pnpm jiti ./playground.ts",
3535
"release": "pnpm test && pnpm build && changelogen --release && git push --follow-tags && npm publish",
36-
"test": "pnpm lint && pnpm test:types && vitest run",
36+
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
3737
"test:types": "tsc --noEmit"
3838
},
3939
"devDependencies": {

vitest.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
typecheck: { enabled: true },
6+
coverage: {
7+
include: ["src/**/*.ts"]
8+
},
9+
},
10+
});

0 commit comments

Comments
 (0)