-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (42 loc) · 1.22 KB
/
playwright.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
41
42
43
name: Playwright Tests
on:
# Schedule integration tests to see the real examples are not broken
schedule:
- cron: '0 2 * * *'
pull_request:
branches: [main, master]
merge_group:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- uses: actions/setup-node@v4
with:
node-version: 16
- uses: actions/cache@v4
with:
path: playwright-bin
key: ${{ runner.os }}-${{ hashFiles('node_modules/playwright/package.json') }}
- run: yarn
- name: Run Playwright tests
run: yarn e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: open issue
if: failure() && github.ref == 'refs/heads/master'
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
update_existing: false
filename: .github/ISSUE_TEMPLATE/playwright-nighly-failed.md