Skip to content

test(tooltip): add playwright tests #9475

test(tooltip): add playwright tests

test(tooltip): add playwright tests #9475

Workflow file for this run

name: Cypress
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
cypress-tests:
name: "Run Cypress tests"
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
# run 5 copy of the current job in parallel
containers: [1, 2, 3, 4, 5]
container:
image: cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
options: --user 1001
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ">=20.9.0 20"
- name: Cache central NPM modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache Cypress binary
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('package.json') }}
restore-keys: |
cypress-${{ runner.os }}-cypress-
- name: install dependencies and verify Cypress
run: |
npm ci
npx cypress cache path
npx cypress cache list
npx cypress verify
npx cypress info
- name: Run split Cypress tests
uses: cypress-io/github-action@v6
with:
component: true
install: false
quiet: true
browser: chrome
env:
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}
DEBUG: cypress-split
- name: Upload report to GitHub Actions Artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-reports
path: cypress/reports
retention-days: 10