Skip to content

Commit

Permalink
chore: slack notification (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonneal authored Dec 1, 2023
1 parent dc73d99 commit 40ad46a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/unit-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: yarn install

- name: Test
id: unit-test
run: yarn test

- name: Jest Coverage Comment
Expand All @@ -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 }}


1 comment on commit 40ad46a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 100%
100% (1244/1244) 100% (273/273) 100% (263/263)
Title Tests Skipped Failures Errors Time
core 347 0 💤 0 ❌ 0 🔥 1m 32s ⏱️
network 90 0 💤 0 ❌ 0 🔥 1m 28s ⏱️
errors 30 0 💤 0 ❌ 0 🔥 12.367s ⏱️

Please sign in to comment.