Skip to content

Commit 30f4fa7

Browse files
authored
ci: codecov (#167)
* ci: codecov * improve test:coverage command
1 parent 6c13765 commit 30f4fa7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ jobs:
2929

3030
- run: pnpm i
3131

32-
- run: pnpm run test
32+
- run: pnpm run test:coverage
33+
34+
- uses: codecov/codecov-action@v5
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
3337

3438
publish-commit:
3539
runs-on: ubuntu-latest

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"posttype:check": "tsc --noEmit",
1414
"test": "vitest run",
1515
"test:watch": "vitest watch",
16-
"test:coverage": "vitest run --coverage",
16+
"test:coverage": "vitest run --coverage --coverage.include=packages",
1717
"lint": "eslint --max-warnings=0 .",
1818
"lint:fix": "pnpm run lint --fix",
1919
"sherif": "pnpm dlx sherif",

0 commit comments

Comments
 (0)