-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: track test coverage * chore: add json summary reporter * Update unit-test.yml
- Loading branch information
1 parent
6dfdf03
commit 78ef6d3
Showing
4 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Unit Tests | ||
name: Unit Tests + Coverage | ||
|
||
on: | ||
pull_request: | ||
|
@@ -7,6 +7,9 @@ on: | |
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: read | ||
pull-requests: write # Required for Providing Jest Coverage Comment | ||
|
||
jobs: | ||
test: | ||
|
@@ -26,3 +29,11 @@ jobs: | |
|
||
- name: Run Jest tests | ||
run: yarn run test | ||
|
||
- name: Jest coverage comment | ||
uses: MishaKav/[email protected] | ||
with: | ||
coverage-summary-path: coverage/coverage-summary.json | ||
title: Jest Test Coverage | ||
summary-title: Tests summary | ||
badge-title: Coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
*.keys | ||
*.keys | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters