Skip to content

Commit 4c024e7

Browse files
committed
add tests in ci
1 parent 894d71d commit 4c024e7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ jobs:
2525
- name: Run linting
2626
run: npm run lint
2727

28+
- name: Run tests with coverage
29+
run: npm test
30+
31+
- name: Upload coverage report
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: coverage-report
35+
path: coverage
36+
2837
- name: Build
2938
run: npm run build
3039

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "eslint --ext .ts,.tsx .",
1414
"storybook": "storybook dev -p 6006",
1515
"build-storybook": "storybook build",
16-
"test": "vitest",
16+
"test": "vitest --coverage",
1717
"postinstall": "patch-package"
1818
},
1919
"devDependencies": {

0 commit comments

Comments
 (0)