-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.13 KB
/
cypress-e2e-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Cypress E2E Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
e2e-tests:
permissions:
contents: read
strategy:
# when one test fails, DO NOT cancel the others
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
browser: ["chrome", "firefox"]
include:
- os: "macos-latest"
browser: "electron"
- os: "ubuntu-latest"
browser: "chromium"
- os: "windows-latest"
browser: "edge"
exclude:
- os: "macos-latest"
browser: "firefox"
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