Skip to content

Commit b9d79e5

Browse files
committed
Provide and upload coverage report
1 parent 2ea5ba2 commit b9d79e5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci-testing.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@ jobs:
3838
run: yarn install --frozen-lockfile
3939

4040
- name: Unit Test
41-
run: yarn run test:unit
41+
run: yarn run test:unit --coverage --collectCoverageOnlyFrom ./src/**
42+
43+
- name: Report coverage
44+
uses: vebr/jest-lcov-reporter@v0.2.0
45+
with:
46+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
node_modules
3+
coverage
34

45
# local env files
56
.env.local

0 commit comments

Comments
 (0)