Skip to content

Playwright Tests

Playwright Tests #397

Workflow file for this run

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