Skip to content

Commit 38461fa

Browse files
committed
SlackNotifications
1 parent 9abe5f6 commit 38461fa

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,16 @@ jobs:
5757
run: zip -r html-report.zip html-report
5858
# This step should always run, even if previous steps fail
5959
if: always()
60-
61-
62-
- name: Upload HTML report as artifact
63-
uses: actions/upload-artifact@v2
64-
with:
65-
name: html-report
66-
path: html-report.zip
67-
60+
61+
# Send Slack notification once the tests complete
6862
- name: Send Slack notification
6963
uses: rtCamp/action-slack-notify@v2
7064
env:
7165
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
7266
SLACK_CHANNEL: "#playwright-test-reports"
7367
SLACK_USERNAME: GitHub Actions
74-
SLACK_TITLE: "Playwright tests have completed successfully. HTML report is attached as an artifact. You can download it [here](${{ github.server_url }}/${{ github.repository }}/actions/artifacts/html-report)"
75-
# This step should always run, even if previous steps fail
68+
SLACK_TITLE: Playwright Tests Completed
69+
SLACK_TEXT: "Playwright tests have completed. Here is the HTML zip report."
70+
SLACK_FILE: ./html-report.zip
71+
# This step should always run, even if previous steps fail
7672
if: always()

0 commit comments

Comments
 (0)