Skip to content

Commit 00ef3ae

Browse files
chore: Added code-coverage workflow
1 parent 66e08d3 commit 00ef3ae

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ jobs:
2222
- name: Prettier
2323
run: npm run prettier
2424

25-
- name: Test
26-
run: npm run test:unit
25+
- name: Run tests with coverage
26+
run: npm run test:unit -- --coverage
27+
28+
- name: Upload coverage report
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: coverage-report
32+
path: coverage/
2733

2834
- name: Build
2935
run: npm run build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ tsconfig.tsbuildinfo
1313
# mcp registry
1414
.mcpregistry_github_token
1515
.mcpregistry_registry_token
16+
17+
# Jest coverage output
18+
coverage/

0 commit comments

Comments
 (0)