1
+ name : Tests Workflow
2
+
3
+ # Controls when the workflow will run
4
+ on :
5
+ # Triggers the workflow on push or pull request events but only for the specified branch
6
+ push :
7
+ branches :
8
+ - " master"
9
+ - " development"
10
+ pull_request :
11
+ branches :
12
+ - " master"
13
+ - " development"
14
+
15
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
16
+ jobs :
17
+ EEG_Dipole-test :
18
+ # The type of runner that the job will run on
19
+ runs-on : ubuntu-20.04
20
+ container : lironavon/docker-puppeteer-container:14.16.0
21
+ env :
22
+ CI : true
23
+ steps :
24
+ - uses : actions/checkout@v1
25
+ - name : Use Node.js ${{ matrix.node-version }}
26
+ uses : actions/setup-node@v1
27
+ with :
28
+ node-version : ${{ matrix.node-version }}
29
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
30
+ - name : EEG and Dipole Plot snapshot test using Tut#1
31
+ run : |
32
+ cd tests/frontend/e2e
33
+ #install dependencies
34
+ npm ci
35
+ # run EEG and Dipole Plot test
36
+ npm run EEG_Dipole_test
37
+ env :
38
+ CI : true
39
+ Experiment_Manager-test :
40
+ # The type of runner that the job will run on
41
+ runs-on : ubuntu-20.04
42
+ container : lironavon/docker-puppeteer-container:14.16.0
43
+ env :
44
+ CI : true
45
+ steps :
46
+ - uses : actions/checkout@v1
47
+ - name : Use Node.js ${{ matrix.node-version }}
48
+ uses : actions/setup-node@v1
49
+ with :
50
+ node-version : ${{ matrix.node-version }}
51
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
52
+ - name : Experiment Manager snapshot test using Tut#1
53
+ run : |
54
+ cd tests/frontend/e2e
55
+ #install dependencies
56
+ npm ci
57
+ # run Experiment Manager test
58
+ npm run Experiment_Manager_test
59
+ env :
60
+ CI : true
61
+ Control_Panel-test :
62
+ # The type of runner that the job will run on
63
+ runs-on : ubuntu-20.04
64
+ container : lironavon/docker-puppeteer-container:14.16.0
65
+ env :
66
+ CI : true
67
+ steps :
68
+ - uses : actions/checkout@v1
69
+ - name : Use Node.js ${{ matrix.node-version }}
70
+ uses : actions/setup-node@v1
71
+ with :
72
+ node-version : ${{ matrix.node-version }}
73
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
74
+ - name : Control Panel test using Tut#2
75
+ run : |
76
+ cd tests/frontend/e2e
77
+ #install dependencies
78
+ npm ci
79
+ # run Control Panel test
80
+ npm run Control_Panel_test
81
+ env :
82
+ CI : true
83
+ Save_and_Open_File-test :
84
+ # The type of runner that the job will run on
85
+ runs-on : ubuntu-20.04
86
+ container : lironavon/docker-puppeteer-container:14.16.0
87
+ env :
88
+ CI : true
89
+ steps :
90
+ - uses : actions/checkout@v1
91
+ - name : Use Node.js ${{ matrix.node-version }}
92
+ uses : actions/setup-node@v1
93
+ with :
94
+ node-version : ${{ matrix.node-version }}
95
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
96
+ - name : Test for Opening and Saving a file
97
+ run : |
98
+ cd tests/frontend/e2e
99
+ #install dependencies
100
+ npm ci
101
+ # run Control Panel test
102
+ npm run Save_Open_File_test
103
+ env :
104
+ CI : true
105
+ RxD-test :
106
+ # The type of runner that the job will run on
107
+ runs-on : ubuntu-20.04
108
+ container : lironavon/docker-puppeteer-container:14.16.0
109
+ env :
110
+ CI : true
111
+ steps :
112
+ - uses : actions/checkout@v1
113
+ - name : Use Node.js ${{ matrix.node-version }}
114
+ uses : actions/setup-node@v1
115
+ with :
116
+ node-version : ${{ matrix.node-version }}
117
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
118
+ - name : Test for RxD plot
119
+ run : |
120
+ cd tests/frontend/e2e
121
+ #install dependencies
122
+ npm ci
123
+ # run RxD Plot test
124
+ npm run RxD_test
125
+ env :
126
+ CI : true
127
+ Tutorial_1-SmokeTest :
128
+ # The type of runner that the job will run on
129
+ runs-on : ubuntu-20.04
130
+ container : lironavon/docker-puppeteer-container:14.16.0
131
+ env :
132
+ CI : true
133
+ steps :
134
+ - uses : actions/checkout@v1
135
+ - name : Use Node.js ${{ matrix.node-version }}
136
+ uses : actions/setup-node@v1
137
+ with :
138
+ node-version : ${{ matrix.node-version }}
139
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
140
+ - name : Tutorial 1 Plot Tests
141
+ run : |
142
+ cd tests/frontend/e2e
143
+ #install dependencies
144
+ npm ci
145
+ # run Tutorial 1 Plot Tests
146
+ npm run Tutorial_1_test
147
+ env :
148
+ CI : true
149
+ Tutorial_2-SmokeTest :
150
+ # The type of runner that the job will run on
151
+ runs-on : ubuntu-20.04
152
+ container : lironavon/docker-puppeteer-container:14.16.0
153
+ env :
154
+ CI : true
155
+ steps :
156
+ - uses : actions/checkout@v1
157
+ - name : Use Node.js ${{ matrix.node-version }}
158
+ uses : actions/setup-node@v1
159
+ with :
160
+ node-version : ${{ matrix.node-version }}
161
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
162
+ - name : Tutorial 2 Plot Tests
163
+ run : |
164
+ cd tests/frontend/e2e
165
+ #install dependencies
166
+ npm ci
167
+ # run Tutorial 2 Plot Tests
168
+ npm run Tutorial_2_test
169
+ env :
170
+ CI : true
171
+ Tutorial_3a-SmokeTest :
172
+ # The type of runner that the job will run on
173
+ runs-on : ubuntu-20.04
174
+ container : lironavon/docker-puppeteer-container:14.16.0
175
+ env :
176
+ CI : true
177
+ steps :
178
+ - uses : actions/checkout@v1
179
+ - name : Use Node.js ${{ matrix.node-version }}
180
+ uses : actions/setup-node@v1
181
+ with :
182
+ node-version : ${{ matrix.node-version }}
183
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
184
+ - name : Tutorial 3a Plot Tests
185
+ run : |
186
+ cd tests/frontend/e2e
187
+ #install dependencies
188
+ npm ci
189
+ # run Tutorial 3a Plot Tests
190
+ npm run Tutorial_3A_test
191
+ env :
192
+ CI : true
193
+ Tutorial_3b-SmokeTest :
194
+ # The type of runner that the job will run on
195
+ runs-on : ubuntu-20.04
196
+ container : lironavon/docker-puppeteer-container:14.16.0
197
+ env :
198
+ CI : true
199
+ steps :
200
+ - uses : actions/checkout@v1
201
+ - name : Use Node.js ${{ matrix.node-version }}
202
+ uses : actions/setup-node@v1
203
+ with :
204
+ node-version : ${{ matrix.node-version }}
205
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
206
+ - name : Tutorial 3b Plot Tests
207
+ run : |
208
+ cd tests/frontend/e2e
209
+ #install dependencies
210
+ npm ci
211
+ # run Tutorial 3b Plot Tests
212
+ npm run Tutorial_3B_test
213
+ env :
214
+ CI : true
215
+ Tutorial_3c-SmokeTest :
216
+ # The type of runner that the job will run on
217
+ runs-on : ubuntu-20.04
218
+ container : lironavon/docker-puppeteer-container:14.16.0
219
+ env :
220
+ CI : true
221
+ steps :
222
+ - uses : actions/checkout@v1
223
+ - name : Use Node.js ${{ matrix.node-version }}
224
+ uses : actions/setup-node@v1
225
+ with :
226
+ node-version : ${{ matrix.node-version }}
227
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
228
+ - name : Tutorial 3c Plot Tests
229
+ run : |
230
+ cd tests/frontend/e2e
231
+ #install dependencies
232
+ npm ci
233
+ # run Tutorial 3c Plot Tests
234
+ npm run Tutorial_3C_test
235
+ env :
236
+ CI : true
237
+ Tutorial_4-SmokeTest :
238
+ # The type of runner that the job will run on
239
+ runs-on : ubuntu-20.04
240
+ container : lironavon/docker-puppeteer-container:14.16.0
241
+ env :
242
+ CI : true
243
+ steps :
244
+ - uses : actions/checkout@v1
245
+ - name : Use Node.js ${{ matrix.node-version }}
246
+ uses : actions/setup-node@v1
247
+ with :
248
+ node-version : ${{ matrix.node-version }}
249
+ cache-dependency-path : frontend/e2e/tests/package-lock.json
250
+ - name : Tutorial 4 Plot Tests
251
+ run : |
252
+ cd tests/frontend/e2e
253
+ #install dependencies
254
+ npm ci
255
+ # run Tutorial 4 Plot Tests
256
+ npm run Tutorial_4_test
257
+ env :
258
+ CI : true
0 commit comments