Skip to content

Commit

Permalink
Run tests once a week
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgarcia committed Jan 4, 2025
1 parent f31b310 commit 1dfdebc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/playwright-scheduled.yml
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
Expand All @@ -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"
}
]
}
Expand Down

0 comments on commit 1dfdebc

Please sign in to comment.