File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1616 build :
1717 # Specify the operating system for this job
1818 runs-on : ubuntu-latest
19+ env :
20+ SLACK_WEBHOOK_URL : ${{secrets.SLACK_WEBHOOK_URL}}
1921
2022 # Define the steps to execute in this job
2123 steps :
@@ -45,13 +47,25 @@ jobs:
4547
4648 # Step to wait for the job to complete
4749 - name : Wait for job completion
48- # Adjust the wait time as needed
49- run : sleep 30s
50+ # Adjust the wait time as needed
51+ run : sleep 30s
5052 # This step should always run, even if previous steps fail
5153 if : always()
5254
5355 # Step to zip html-report folder
5456 - name : Zip HTML report
5557 run : zip -r html-report.zip html-report
5658 # This step should always run, even if previous steps fail
57- if : always()
59+ if : always()
60+
61+ - name : Send Slack notification
62+ uses : rtCamp/action-slack-notify@v2
63+ env :
64+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
65+ SLACK_CHANNEL : ' #playwright-test-reports'
66+ SLACK_USERNAME : GitHub Actions
67+ SLACK_TITLE : Playwright Tests Completed
68+ SLACK_TEXT : " Playwright tests have completed. Here is the HTML report."
69+ SLACK_FILE : ./html-report.zip
70+ # This step should always run, even if previous steps fail
71+ if : always()
You can’t perform that action at this time.
0 commit comments