Skip to content

Commit f5703d5

Browse files
committed
ChangedGithubActions
1 parent d4355cd commit f5703d5

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@v2
2525

26-
# Step to install msmtp
27-
- name: Install msmtp
28-
run: sudo apt update && sudo apt install -y msmtp
29-
3026
# Step to set up the Node.js version
3127
- name: Install node js v20
3228
uses: actions/setup-node@v2
3329
with:
34-
node-version: '20'
30+
node-version: "20"
3531

3632
# Step to install Node.js dependencies
3733
- name: Install dependencies
@@ -49,20 +45,13 @@ jobs:
4945

5046
# Step to wait for the job to complete
5147
- name: Wait for job completion
52-
run: sleep 30s # Adjust the wait time as needed
48+
# Adjust the wait time as needed
49+
run: sleep 30s
5350
# This step should always run, even if previous steps fail
5451
if: always()
5552

5653
# Step to zip html-report folder
5754
- name: Zip HTML report
5855
run: zip -r html-report.zip html-report
5956
# This step should always run, even if previous steps fail
60-
if: always()
61-
62-
# Step to send email with the zip report using msmtp
63-
- name: Send email with zip report
64-
run: |
65-
echo "Sending email with zip report"
66-
echo -e "Subject: Playwright Test Report\n\nThis is the body of the email" | msmtp -a default codendeavor@gmail.com
67-
# This step should only run if the previous steps were successful
68-
if: success()
57+
if: always()

0 commit comments

Comments
 (0)