Skip to content

Commit 7804a30

Browse files
authored
feat: api coverage report
1 parent e5ffcca commit 7804a30

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/ai_pr_coverage_report.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Api :: Coverage Report
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "modules/services/api/**"
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v3
15+
16+
- name: Install Dependencies
17+
run: npm ci
18+
19+
- name: Run Jest Tests with Coverage
20+
run: npm run test:cov
21+
working-directory: modules/services/api/
22+
23+
- name: Comment PR with Jest Coverage
24+
uses: MishaKav/jest-coverage-commenter-action@v1.0.8
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)