Skip to content

Commit ea5c21f

Browse files
committed
SlackNotifications
1 parent 69067ee commit ea5c21f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,23 @@ jobs:
5858
# This step should always run, even if previous steps fail
5959
if: always()
6060

61+
- name: Upload artifact
62+
uses: actions/upload-artifact@v2
63+
with:
64+
name: html-report
65+
path: html-report.zip
66+
67+
- name: Generate artifact link
68+
id: artifact_link
69+
run: echo "::set-output name=artifact_url::https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts"
70+
6171
# Send Slack notification once the tests are completed
6272
- name: Send Slack notification
6373
uses: rtCamp/action-slack-notify@v2
6474
env:
6575
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
6676
SLACK_CHANNEL: "#playwright-test-reports"
6777
SLACK_USERNAME: Playwright GitHub Actions
68-
SLACK_TITLE: Playwright Tests Completed
69-
SLACK_FILE: ./html-report.zip
78+
SLACK_TITLE: Test results are available [here](${{ steps.artifact_link.outputs.artifact_url }}).
7079
# This step should always run, even if previous steps fail
7180
if: always()

0 commit comments

Comments
 (0)