Skip to content

Playwright demo tests #5347

Playwright demo tests

Playwright demo tests #5347

Workflow file for this run

name: Playwright demo tests
on:
push:
workflow_dispatch:
schedule:
# run at minute 5 past every 4th hour from 1 through 23
- cron: "5 1/4 * * *"
jobs:
playwright-demo-node:
name: Playwright version 1.38
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.38.1-jammy
# stop the job if it runs over 115 minutes
# to prevent a hanging process from using CI minutes
timeout-minutes: 115
steps:
- name: Delete workflow runs older than one week
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 7
keep_minimum_runs: 10
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Npm install
run: npm ci
- name: Run tests
run: npx playwright test
- name: Upload artifacts report
uses: actions/upload-artifact@v3
with:
name: playwright-report
path: playwright-report
if-no-files-found: ignore
- name: Deploy Playwright report
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playwright-report
destination_dir: docs