Skip to content

Commit 9d89c69

Browse files
committed
ci: add codecov action
1 parent b58fbe5 commit 9d89c69

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build-test-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ jobs:
4040
restore-keys: |
4141
${{ runner.os }}-pnpm-
4242
- run: pnpm build
43-
- run: pnpm test
43+
- run: pnpm test:coverage
44+
- name: Upload coverage reports to Codecov
45+
uses: codecov/[email protected]
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
slug: kinde-oss/kinde-sveltekit-sdk

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1313
"lint": "prettier --plugin-search-dir . --check . && eslint .",
1414
"format": "prettier --plugin-search-dir . --write .",
15-
"test": "vitest"
15+
"test": "vitest",
16+
"test:coverage": "vitest --coverage"
1617
},
1718
"author": {
1819
"name": "Kinde",

0 commit comments

Comments
 (0)