Skip to content

Commit 5d6703b

Browse files
add unit tests for test coverage
1 parent f7bce9c commit 5d6703b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'TS SDK - Unit Testing'
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- development
7+
- staging
8+
- main
9+
10+
jobs:
11+
coverage:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
checks: write
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Run unit tests with coverage
22+
uses: ArtiomTr/jest-coverage-report-action@v2
23+
id: coverage
24+
with:
25+
test-script: npm run test:unit
26+
threshold: 95

0 commit comments

Comments
 (0)