-
Notifications
You must be signed in to change notification settings - Fork 115
41 lines (36 loc) · 926 Bytes
/
tests.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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: "0" # necessary for `npm run print-version`
- name: Spin up CUBE
id: cube
uses: FNNDSC/miniChRIS-docker@master
with:
plugins: |
pl-mri10yr06mo01da_normal
pl-bulk-rename
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Cypress Tests
uses: cypress-io/github-action@v4
with:
#build: npm run build
#start: env PORT=8088 npm start
# MUST use dev mode because tests rely on (unmangled) element IDs
start: npm run dev
wait-on: "http://localhost:3000"
wait-on-timeout: 600