run cypress tests on mac and windows as well #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |