-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.34 KB
/
playwright-scheduled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Scheduled Playwright Tests
on:
schedule:
# Every Monday at 12:00 UTC
- cron: '0 12 * * 1'
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps chromium
- name: Build Extension files
run: yarn build:chromium
- name: Run Playwright tests
run: yarn playwright test
- name: Notify Slack On Failure
if: failure()
uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"channel": "feed-packages",
"attachments": [
{
"color": "#ff0000",
"text": "gk-browser-extension scheduled Playwright tests failed"
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK