Skip to content

run cypress tests on mac and windows as well #10

run cypress tests on mac and windows as well

run cypress tests on mac and windows as well #10

name: E2E Tests Cypress
on:
push:
branches:
- main
- next
pull_request:
branches:
- main
jobs:
e2e-tests:
permissions:
contents: read
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
browser: ["chrome", "firefox"]
include:
- os: "macos-latest"
browser: "safari"
- os: "windows-latest"
browser: "edge"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Node environment
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cypress run
uses: cypress-io/github-action@v6
with:
browser: ${{ matrix.browser }}
install-command: bash plotly-custom-build.sh
start: npm start
wait-on: "http://localhost:3000"
wait-on-timeout: 300