-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from storyprotocol/feat/add_slack_integration
[feat] add slack integration
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
- name: Lint | ||
run: pnpm eslint . | ||
# Ensure you have a lint script in your package.json | ||
|
||
- name: Run Tests | ||
continue-on-error: true | ||
run: | | ||
|
@@ -53,6 +53,26 @@ jobs: | |
export API_KEY=${{ secrets.API_KEY }} | ||
pnpm exec playwright test | ||
- name: Push Slack Notification | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: ${{ secrets.SLACK_CHANNEL_ID_GITHUB_NOTIFICATION }} | ||
payload: | | ||
{ | ||
"text": "${{ github.repository }}: API Integration Tests have been completed. Check the results at github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text":"${{ github.repository }}: API Integration Tests have been completed. \nCheck the results at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
|
||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v2 | ||
# if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|