-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
name: Scheduled Playwright Tests | ||
on: | ||
schedule: | ||
- cron: '0 * * * *' | ||
# Every Monday at 12:00 UTC | ||
- cron: '0 12 * * 1' | ||
jobs: | ||
test: | ||
timeout-minutes: 5 | ||
|
@@ -20,17 +21,17 @@ jobs: | |
- name: Run Playwright tests | ||
run: yarn playwright test | ||
|
||
- name: Notify Slack | ||
if: always() | ||
- name: Notify Slack On Failure | ||
if: failure() | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"channel": "feed-packages", | ||
"attachments": [ | ||
{ | ||
"color": "#000000", | ||
"text": "gk-browser-extension ran scheduled tests" | ||
"color": "#ff0000", | ||
"text": "gk-browser-extension scheduled Playwright tests failed" | ||
} | ||
] | ||
} | ||
|