1818 key : datasets-${{ hashFiles('datasets/**') }}
1919 - run : datasets/populate
2020
21- lint-lib :
21+ lint-most :
22+ needs : [build-cli, build-lib, build-lib-node, build-lib-web, build-server, build-webapp]
2223 runs-on : ubuntu-latest
2324 steps :
2425 - uses : actions/checkout@v4
3233 ~/.cache/Cypress
3334 key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
3435 - run : npm ci
35- - run : npm --workspace=discojs run lint
36-
37- lint-lib-node :
38- needs : build-lib
39- runs-on : ubuntu-latest
40- steps :
41- - uses : actions/checkout@v4
42- - uses : actions/setup-node@v4
43- with :
44- node-version-file : .nvmrc
45- - uses : actions/cache@v4
46- with :
47- path : |
48- ~/.npm
49- ~/.cache/Cypress
50- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
51- - run : npm ci
52- - run : npm --workspace=discojs run build
53- - run : npm --workspace=discojs-node run lint
54-
55- lint-lib-web :
56- needs : build-lib
57- runs-on : ubuntu-latest
58- steps :
59- - uses : actions/checkout@v4
60- - uses : actions/setup-node@v4
61- with :
62- node-version-file : .nvmrc
63- - uses : actions/cache@v4
64- with :
65- path : |
66- ~/.npm
67- ~/.cache/Cypress
68- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
69- - run : npm ci
70- - run : npm --workspace=discojs run build
71- - run : npm --workspace=discojs-web run lint
72-
73- lint-server :
74- needs : [build-lib, build-lib-node]
75- runs-on : ubuntu-latest
76- steps :
77- - uses : actions/checkout@v4
78- - uses : actions/setup-node@v4
79- with :
80- node-version-file : .nvmrc
81- - uses : actions/cache@v4
82- with :
83- path : |
84- ~/.npm
85- ~/.cache/Cypress
86- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
87- - run : npm ci
88- - run : npm --workspace={discojs,discojs-node} run build
89- - run : npm --workspace=server run lint
90-
91- lint-cli :
92- needs : [build-lib, build-lib-node, build-server]
93- runs-on : ubuntu-latest
94- steps :
95- - uses : actions/checkout@v4
96- - uses : actions/setup-node@v4
97- with :
98- node-version-file : .nvmrc
99- - uses : actions/cache@v4
100- with :
101- path : |
102- ~/.npm
103- ~/.cache/Cypress
104- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
105- - run : npm ci
106- - run : npm --workspace={discojs,discojs-node,server} run build
107- - run : npm --workspace=cli run lint
108-
109- lint-webapp :
110- needs : [build-lib, build-lib-web]
111- runs-on : ubuntu-latest
112- steps :
113- - uses : actions/checkout@v4
114- - uses : actions/setup-node@v4
115- with :
116- node-version-file : .nvmrc
117- - uses : actions/cache@v4
118- with :
119- path : |
120- ~/.npm
121- ~/.cache/Cypress
122- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
123- - run : npm ci
124- - run : npm --workspace={discojs,discojs-web} run build
125- - run : npm --workspace=webapp run lint
36+ - run : npm --workspaces run build
37+ - run : npm run lint
12638
12739 lint-docs-examples :
12840 needs : [build-lib, build-lib-node, build-server]
@@ -283,73 +195,8 @@ jobs:
283195 - run : npm run build
284196 working-directory : docs/examples
285197
286- test-lib :
287- needs : [build-lib, download-datasets]
288- runs-on : ubuntu-latest
289- steps :
290- - uses : actions/checkout@v4
291- - uses : actions/cache@v4
292- with :
293- path : datasets
294- key : datasets-${{ hashFiles('datasets/**') }}
295- - uses : actions/setup-node@v4
296- with :
297- node-version-file : .nvmrc
298- - uses : actions/cache@v4
299- with :
300- path : |
301- ~/.npm
302- ~/.cache/Cypress
303- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
304- - run : npm ci
305- - run : npm --workspace=discojs test
306-
307- test-lib-node :
308- needs : [build-lib, download-datasets]
309- runs-on : ubuntu-latest
310- steps :
311- - uses : actions/checkout@v4
312- - uses : actions/cache@v4
313- with :
314- path : datasets
315- key : datasets-${{ hashFiles('datasets/**') }}
316- - uses : actions/setup-node@v4
317- with :
318- node-version-file : .nvmrc
319- - uses : actions/cache@v4
320- with :
321- path : |
322- ~/.npm
323- ~/.cache/Cypress
324- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
325- - run : npm ci
326- - run : npm --workspace=discojs run build
327- - run : npm --workspace=discojs-node test
328-
329- test-lib-web :
330- needs : [build-lib]
331- runs-on : ubuntu-latest
332- steps :
333- - uses : actions/checkout@v4
334- - uses : actions/cache@v4
335- with :
336- path : datasets
337- key : datasets-${{ hashFiles('datasets/**') }}
338- - uses : actions/setup-node@v4
339- with :
340- node-version-file : .nvmrc
341- - uses : actions/cache@v4
342- with :
343- path : |
344- ~/.npm
345- ~/.cache/Cypress
346- key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
347- - run : npm ci
348- - run : npm --workspace=discojs run build
349- - run : npm --workspace=discojs-web test
350-
351- test-server :
352- needs : [build-lib, build-lib-node, download-datasets]
198+ test-most :
199+ needs : [build-lib, build-lib-node, build-lib-web, build-server, download-datasets]
353200 runs-on : ubuntu-latest
354201 steps :
355202 - uses : actions/checkout@v4
@@ -367,8 +214,8 @@ jobs:
367214 ~/.cache/Cypress
368215 key : npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
369216 - run : npm ci
370- - run : npm --workspace={discojs,discojs-node} run build
371- - run : npm --workspace=server test
217+ - run : npm --workspace={discojs,discojs-{ node,web},server } run build
218+ - run : npx vitest --run
372219
373220 test-webapp :
374221 needs : [build-lib, build-lib-web, download-datasets]
0 commit comments