-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc73d99
commit 40ad46a
Showing
1 changed file
with
15 additions
and
0 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 |
---|---|---|
|
@@ -23,6 +23,7 @@ jobs: | |
run: yarn install | ||
|
||
- name: Test | ||
id: unit-test | ||
run: yarn test | ||
|
||
- name: Jest Coverage Comment | ||
|
@@ -49,5 +50,19 @@ jobs: | |
name: coverage-results | ||
path: | | ||
packages/**/coverage/lcov.info | ||
- name: Post unit test results to slack | ||
if: always() && github.ref == 'refs/heads/main' && (steps.unit-test.outcome == 'failure') | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"source": "GitHub", | ||
"repo": "${{ github.repository}}", | ||
"branch": "${{ github.head_ref || github.ref_name }}", | ||
"message": "unit tests failed" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
|
40ad46a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Coverage
Summary