Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] add slack integration
Browse files Browse the repository at this point in the history
AndyBoWu committed Mar 30, 2024
1 parent 8783043 commit b0093da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
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,14 @@ jobs:
export API_KEY=${{ secrets.API_KEY }}
pnpm exec playwright test
- name: Push Slack Notification
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID_GITHUB_NOTIFICATION }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_MESSAGE: "API Integration Tests have been completed. Check the results at github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

- name: Upload Test Results
uses: actions/upload-artifact@v2
# if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'

0 comments on commit b0093da

Please sign in to comment.