Skip to content

Commit

Permalink
Testing scheduled playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgarcia committed Jan 3, 2025
1 parent a438678 commit f31b310
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/playwright-scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Scheduled Playwright Tests
on:
schedule:
- cron: '0 * * * *'
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
if: always()
uses: slackapi/[email protected]
with:
payload: |
{
"channel": "feed-packages",
"attachments": [
{
"color": "#000000",
"text": "gk-browser-extension ran scheduled tests"
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit f31b310

Please sign in to comment.