Skip to content

Commit 1dfdebc

Browse files
committed
Run tests once a week
1 parent f31b310 commit 1dfdebc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/playwright-scheduled.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Scheduled Playwright Tests
22
on:
33
schedule:
4-
- cron: '0 * * * *'
4+
# Every Monday at 12:00 UTC
5+
- cron: '0 12 * * 1'
56
jobs:
67
test:
78
timeout-minutes: 5
@@ -20,17 +21,17 @@ jobs:
2021
- name: Run Playwright tests
2122
run: yarn playwright test
2223

23-
- name: Notify Slack
24-
if: always()
24+
- name: Notify Slack On Failure
25+
if: failure()
2526
uses: slackapi/[email protected]
2627
with:
2728
payload: |
2829
{
2930
"channel": "feed-packages",
3031
"attachments": [
3132
{
32-
"color": "#000000",
33-
"text": "gk-browser-extension ran scheduled tests"
33+
"color": "#ff0000",
34+
"text": "gk-browser-extension scheduled Playwright tests failed"
3435
}
3536
]
3637
}

0 commit comments

Comments
 (0)