34
34
key : ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
35
35
- name : Prepare Environment
36
36
run : |
37
+ corepack enable
38
+
37
39
yarn config set cacheFolder /home/runner/lint-core-cache
38
40
yarn
39
41
yarn build:packages
46
48
# setup zodern:types. No linters are setup, so this simply installs the packages
47
49
meteor lint
48
50
49
- meteor yarn ci:lint
51
+ yarn ci:lint
50
52
env :
51
53
CI : true
52
54
73
75
key : ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
74
76
- name : Prepare Environment
75
77
run : |
78
+ corepack enable
79
+
76
80
yarn config set cacheFolder /home/runner/test-core-cache
77
81
yarn
78
82
yarn build:packages
85
89
# setup zodern:types. No linters are setup, so this simply installs the packages
86
90
meteor lint
87
91
88
- NODE_OPTIONS="--max-old-space-size=6144" meteor yarn unitci --force-exit
92
+ NODE_OPTIONS="--max-old-space-size=6144" yarn unitci --force-exit
89
93
env :
90
94
CI : true
91
95
- name : Send coverage
@@ -174,6 +178,8 @@ jobs:
174
178
- name : Prepare Environment
175
179
if : steps.check-build-and-push.outputs.enable == 'true'
176
180
run : |
181
+ corepack enable
182
+
177
183
yarn install
178
184
- name : Build libs
179
185
if : steps.check-build-and-push.outputs.enable == 'true'
@@ -184,11 +190,18 @@ jobs:
184
190
run : |
185
191
cd meteor
186
192
yarn inject-git-hash
193
+ - name : Prepare webui for meteor build
194
+ if : steps.check-build-and-push.outputs.enable == 'true'
195
+ run : |
196
+ rm -Rf meteor/public
197
+ cp -R packages/webui/dist meteor/public
187
198
- name : Meteor Build
188
199
if : steps.check-build-and-push.outputs.enable == 'true'
189
200
run : |
190
201
cd meteor
191
202
NODE_OPTIONS="--max-old-space-size=4096" METEOR_DEBUG_BUILD=1 meteor build --allow-superuser --directory .
203
+ mv bundle/programs/web.browser/assets/ bundle/programs/web.browser/app/assets/ || true
204
+
192
205
- name : Meteor Bundle NPM Build
193
206
if : steps.check-build-and-push.outputs.enable == 'true'
194
207
run : |
@@ -341,6 +354,8 @@ jobs:
341
354
- name : Build
342
355
if : steps.check-build-and-push.outputs.enable == 'true'
343
356
run : |
357
+ corepack enable
358
+
344
359
cd packages
345
360
yarn install
346
361
yarn lerna run --scope \*\*/${{ matrix.gateway-name }} --include-dependencies --stream build
@@ -426,9 +441,11 @@ jobs:
426
441
- mos-gateway
427
442
- corelib
428
443
- shared-lib
444
+ - meteor-lib
429
445
- job-worker
430
446
- openapi
431
447
- live-status-gateway
448
+ - webui
432
449
433
450
steps :
434
451
- uses : actions/checkout@v4
@@ -446,6 +463,8 @@ jobs:
446
463
key : ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
447
464
- name : Prepare Environment
448
465
run : |
466
+ corepack enable
467
+
449
468
cd packages
450
469
yarn config set cacheFolder /home/runner/${{ matrix.package-name }}-cache
451
470
yarn install
@@ -471,29 +490,30 @@ jobs:
471
490
- blueprints-integration
472
491
- server-core-integration
473
492
- shared-lib
474
- node-version : [14.x, 16.x, 18.x, 20.x]
493
+ - openapi
494
+ node-version : [22.x]
475
495
include :
476
496
# include additional configs, to run certain packages only for a certain version of node
477
- - node-version : 14 .x
497
+ - node-version : 22 .x
478
498
package-name : corelib
479
499
send-coverage : true
480
- - node-version : 14 .x
500
+ - node-version : 22 .x
481
501
package-name : job-worker
482
502
send-coverage : true
483
- # manual openapi to avoid testing for 14.x
484
- - node-version : 16.x
485
- package-name : openapi
486
- - node-version : 18.x
487
- package-name : openapi
488
- - node-version : 20.x
489
- package-name : openapi
490
503
# No tests for the gateways yet
491
- # - node-version: 18 .x
504
+ # - node-version: 22 .x
492
505
# package-name: playout-gateway
493
- # - node-version: 18 .x
506
+ # - node-version: 22 .x
494
507
# package-name: mos-gateway
495
- - node-version : 18 .x
508
+ - node-version : 22 .x
496
509
package-name : live-status-gateway
510
+ send-coverage : true
511
+ - node-version : 22.x
512
+ package-name : webui
513
+ # manual meteor-lib as it only needs a couple of versions
514
+ - node-version : 22.x
515
+ package-name : meteor-lib
516
+ send-coverage : true
497
517
498
518
steps :
499
519
- uses : actions/checkout@v4
@@ -511,9 +531,11 @@ jobs:
511
531
key : ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
512
532
- name : Prepare Environment
513
533
run : |
534
+ corepack enable
535
+
514
536
cd packages
515
537
yarn config set cacheFolder /home/runner/test-packages-cache
516
- node is_node_14.js && yarn lerna run --ignore openapi install || yarn install
538
+ yarn install
517
539
yarn lerna run --scope \*\*/${{ matrix.package-name }} --include-dependencies --stream build
518
540
env :
519
541
CI : true
@@ -524,8 +546,8 @@ jobs:
524
546
env :
525
547
CI : true
526
548
- name : Send coverage
527
- if : (matrix.node-version == '16 .x' || matrix.send-coverage == true) && ((github.event_name == 'pull_request') && ((!startsWith(github.head_ref, 'release'))) || ((github.event_name == 'push') && (!startsWith(github.ref_name, 'release'))))
528
- uses : codecov/codecov-action@v5
549
+ if : (matrix.node-version == '18 .x' || matrix.send-coverage == true) && ((github.event_name == 'pull_request') && ((!startsWith(github.head_ref, 'release'))) || ((github.event_name == 'push') && (!startsWith(github.ref_name, 'release'))))
550
+ uses : codecov/codecov-action@v4
529
551
env :
530
552
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
531
553
@@ -543,6 +565,8 @@ jobs:
543
565
node-version-file : " .node-version"
544
566
- name : Prepare Environment
545
567
run : |
568
+ corepack enable
569
+
546
570
cd packages
547
571
yarn
548
572
env :
@@ -569,6 +593,8 @@ jobs:
569
593
node-version-file : " .node-version"
570
594
- name : Prepare Environment
571
595
run : |
596
+ corepack enable
597
+
572
598
cd packages
573
599
yarn
574
600
env :
@@ -609,10 +635,12 @@ jobs:
609
635
key : ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
610
636
- name : Prepare Environment
611
637
run : |
638
+ corepack enable
639
+
612
640
cd packages
613
641
yarn config set cacheFolder /home/runner/publish-docs-cache
614
642
yarn install
615
- yarn build
643
+ yarn build:all
616
644
env :
617
645
CI : true
618
646
- name : Run docusaurus
@@ -658,6 +686,8 @@ jobs:
658
686
node-version-file : " .node-version"
659
687
- name : Prepare Environment # have to run this first to make sure the semver lib is available
660
688
run : |
689
+ corepack enable
690
+
661
691
yarn config set cacheFolder /home/runner/release-libs-cache
662
692
663
693
cd packages
@@ -742,6 +772,8 @@ jobs:
742
772
key : ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
743
773
- name : Prepare Environment
744
774
run : |
775
+ corepack enable
776
+
745
777
yarn config set cacheFolder /home/runner/check-for-multiple-library-versions-cache
746
778
yarn
747
779
env :
0 commit comments