-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (53 loc) · 1.73 KB
/
cypress.yaml
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
52
53
54
55
name: Cypress UI Test
on:
workflow_call:
inputs:
branch:
type: string
required: true
type:
type: string
required: true
node_version:
type: string
default: "16"
workflow_dispatch:
inputs:
branch:
type: string
required: true
type:
type: string
required: true
node_version:
type: string
default: "16"
jobs:
cypress-test:
runs-on: ["self-hosted","node-${{ inputs.node_version }}","west"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress headless test
if: inputs.type == 'push'
uses: cypress-io/github-action@v6
with:
start: npm start
wait-on: 'http://localhost:8080'
browser: chrome
spec: cypress/tests/*/*.js
env:
NODE_ENV: test
SIERRA_CONFIG: https://cdn.rcsb.org/config/c5aecb46a9fe2698498ed4d1ab1925e9a8fef7f5/profiles/parks/sierra/sierra-base.app.json,https://cdn.rcsb.org/config/c5aecb46a9fe2698498ed4d1ab1925e9a8fef7f5/profiles/parks/sierra/branch/sierra-${{ inputs.branch }}.app.json
- name: Cypress nightly test
if: inputs.type == 'nightly'
uses: cypress-io/github-action@v6
with:
start: npm start
wait-on: 'http://localhost:8080'
browser: chrome
headed: true
spec: cypress/tests/homepage/*.js
env:
NODE_ENV: test
SIERRA_CONFIG: https://cdn.rcsb.org/config/c5aecb46a9fe2698498ed4d1ab1925e9a8fef7f5/profiles/parks/sierra/sierra-base.app.json,https://cdn.rcsb.org/config/c5aecb46a9fe2698498ed4d1ab1925e9a8fef7f5/profiles/parks/sierra/branch/sierra-${{ inputs.branch }}.app.json