Skip to content

Commit b2339f9

Browse files
committed
Merge branch 'upstream-release52' into upstream-main
2 parents 7354e13 + 3cd7af0 commit b2339f9

File tree

1,756 files changed

+86960
-53292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,756 files changed

+86960
-53292
lines changed

.github/actions/setup-meteor/action.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ description: "Setup Meteor"
33
runs:
44
using: "composite"
55
steps:
6-
- run: curl "https://install.meteor.com/?release=2.13.3" | sh
7-
shell: bash
8-
- run: meteor npm install -g yarn
6+
- run: curl "https://install.meteor.com/?release=3.1" | sh
97
shell: bash

.github/workflows/audit.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ jobs:
2727
key: ${{ runner.os }}-${{ hashFiles('meteor/yarn.lock') }}-${{ hashFiles('meteor/.meteor/release') }}
2828
- name: Validate production dependencies for vulnerabilities and compatible licenses
2929
run: |
30+
corepack enable
31+
3032
yarn
3133
cd meteor
32-
meteor yarn validate:prod-dependencies
34+
yarn validate:prod-dependencies
3335
env:
3436
CI: true
3537

@@ -55,9 +57,11 @@ jobs:
5557
key: ${{ runner.os }}-${{ hashFiles('meteor/yarn.lock') }}-${{ hashFiles('meteor/.meteor/release') }}
5658
- name: Validate production dependencies for vulnerabilities and compatible licenses
5759
run: |
60+
corepack enable
61+
5862
yarn
5963
cd meteor
60-
meteor yarn run validate:all-dependencies
64+
yarn run validate:all-dependencies
6165
env:
6266
CI: true
6367

@@ -88,6 +92,8 @@ jobs:
8892
node-version-file: ".node-version"
8993
- name: Prepare Environment
9094
run: |
95+
corepack enable
96+
9197
cd packages
9298
yarn install
9399
env:
@@ -119,6 +125,8 @@ jobs:
119125
node-version-file: ".node-version"
120126
- name: Prepare Environment
121127
run: |
128+
corepack enable
129+
122130
cd packages
123131
yarn install
124132
env:

.github/workflows/node.yaml

Lines changed: 51 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
3535
- name: Prepare Environment
3636
run: |
37+
corepack enable
38+
3739
yarn config set cacheFolder /home/runner/lint-core-cache
3840
yarn
3941
yarn build:packages
@@ -46,7 +48,7 @@ jobs:
4648
# setup zodern:types. No linters are setup, so this simply installs the packages
4749
meteor lint
4850
49-
meteor yarn ci:lint
51+
yarn ci:lint
5052
env:
5153
CI: true
5254

@@ -73,6 +75,8 @@ jobs:
7375
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
7476
- name: Prepare Environment
7577
run: |
78+
corepack enable
79+
7680
yarn config set cacheFolder /home/runner/test-core-cache
7781
yarn
7882
yarn build:packages
@@ -85,7 +89,7 @@ jobs:
8589
# setup zodern:types. No linters are setup, so this simply installs the packages
8690
meteor lint
8791
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
8993
env:
9094
CI: true
9195
- name: Send coverage
@@ -174,6 +178,8 @@ jobs:
174178
- name: Prepare Environment
175179
if: steps.check-build-and-push.outputs.enable == 'true'
176180
run: |
181+
corepack enable
182+
177183
yarn install
178184
- name: Build libs
179185
if: steps.check-build-and-push.outputs.enable == 'true'
@@ -184,11 +190,18 @@ jobs:
184190
run: |
185191
cd meteor
186192
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
187198
- name: Meteor Build
188199
if: steps.check-build-and-push.outputs.enable == 'true'
189200
run: |
190201
cd meteor
191202
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+
192205
- name: Meteor Bundle NPM Build
193206
if: steps.check-build-and-push.outputs.enable == 'true'
194207
run: |
@@ -341,6 +354,8 @@ jobs:
341354
- name: Build
342355
if: steps.check-build-and-push.outputs.enable == 'true'
343356
run: |
357+
corepack enable
358+
344359
cd packages
345360
yarn install
346361
yarn lerna run --scope \*\*/${{ matrix.gateway-name }} --include-dependencies --stream build
@@ -426,9 +441,11 @@ jobs:
426441
- mos-gateway
427442
- corelib
428443
- shared-lib
444+
- meteor-lib
429445
- job-worker
430446
- openapi
431447
- live-status-gateway
448+
- webui
432449

433450
steps:
434451
- uses: actions/checkout@v4
@@ -446,6 +463,8 @@ jobs:
446463
key: ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
447464
- name: Prepare Environment
448465
run: |
466+
corepack enable
467+
449468
cd packages
450469
yarn config set cacheFolder /home/runner/${{ matrix.package-name }}-cache
451470
yarn install
@@ -471,29 +490,30 @@ jobs:
471490
- blueprints-integration
472491
- server-core-integration
473492
- shared-lib
474-
node-version: [14.x, 16.x, 18.x, 20.x]
493+
- openapi
494+
node-version: [22.x]
475495
include:
476496
# include additional configs, to run certain packages only for a certain version of node
477-
- node-version: 14.x
497+
- node-version: 22.x
478498
package-name: corelib
479499
send-coverage: true
480-
- node-version: 14.x
500+
- node-version: 22.x
481501
package-name: job-worker
482502
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
490503
# No tests for the gateways yet
491-
# - node-version: 18.x
504+
# - node-version: 22.x
492505
# package-name: playout-gateway
493-
# - node-version: 18.x
506+
# - node-version: 22.x
494507
# package-name: mos-gateway
495-
- node-version: 18.x
508+
- node-version: 22.x
496509
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
497517

498518
steps:
499519
- uses: actions/checkout@v4
@@ -511,9 +531,11 @@ jobs:
511531
key: ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
512532
- name: Prepare Environment
513533
run: |
534+
corepack enable
535+
514536
cd packages
515537
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
517539
yarn lerna run --scope \*\*/${{ matrix.package-name }} --include-dependencies --stream build
518540
env:
519541
CI: true
@@ -524,8 +546,8 @@ jobs:
524546
env:
525547
CI: true
526548
- 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
529551
env:
530552
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
531553

@@ -543,6 +565,8 @@ jobs:
543565
node-version-file: ".node-version"
544566
- name: Prepare Environment
545567
run: |
568+
corepack enable
569+
546570
cd packages
547571
yarn
548572
env:
@@ -569,6 +593,8 @@ jobs:
569593
node-version-file: ".node-version"
570594
- name: Prepare Environment
571595
run: |
596+
corepack enable
597+
572598
cd packages
573599
yarn
574600
env:
@@ -609,10 +635,12 @@ jobs:
609635
key: ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
610636
- name: Prepare Environment
611637
run: |
638+
corepack enable
639+
612640
cd packages
613641
yarn config set cacheFolder /home/runner/publish-docs-cache
614642
yarn install
615-
yarn build
643+
yarn build:all
616644
env:
617645
CI: true
618646
- name: Run docusaurus
@@ -658,6 +686,8 @@ jobs:
658686
node-version-file: ".node-version"
659687
- name: Prepare Environment # have to run this first to make sure the semver lib is available
660688
run: |
689+
corepack enable
690+
661691
yarn config set cacheFolder /home/runner/release-libs-cache
662692
663693
cd packages
@@ -742,6 +772,8 @@ jobs:
742772
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
743773
- name: Prepare Environment
744774
run: |
775+
corepack enable
776+
745777
yarn config set cacheFolder /home/runner/check-for-multiple-library-versions-cache
746778
yarn
747779
env:

.github/workflows/prerelease-libs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
node-version-file: ".node-version"
3030
- name: Prepare Environment
3131
run: |
32+
corepack enable
33+
3234
cd packages
3335
yarn install
3436
yarn lerna run --scope \*\*/${{ matrix.package-name }} --include-dependencies --stream build
@@ -53,7 +55,7 @@ jobs:
5355
- blueprints-integration
5456
- server-core-integration
5557
- shared-lib
56-
node-version: [14.x, 16.x, 18.x, 20.x]
58+
node-version: [22.x]
5759

5860
steps:
5961
- uses: actions/checkout@v4
@@ -65,6 +67,8 @@ jobs:
6567
node-version: ${{ matrix.node-version }}
6668
- name: Prepare Environment
6769
run: |
70+
corepack enable
71+
6872
cd packages
6973
yarn install
7074
yarn lerna run --scope \*\*/${{ matrix.package-name }} --include-dependencies --stream build
@@ -105,6 +109,8 @@ jobs:
105109
- name: Prepare Environment
106110
if: ${{ steps.do-publish.outputs.publish }}
107111
run: |
112+
corepack enable
113+
108114
cd packages
109115
yarn install
110116
env:

.github/workflows/sonar.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
3838
- name: Prepare Environment
3939
run: |
40+
corepack enable
41+
4042
yarn
4143
yarn build:packages
4244
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ meteor/.coverage/
44
node_modules
55
**/yarn-error.log
66
scratch/
7+
meteor-settings.json
78

89
# Exclude JetBrains IDE specific files
910
.idea

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.16
1+
22.11

.vscode/settings.json.default

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"packages/shared-lib",
1010
"packages/job-worker",
1111
"packages/openapi",
12-
"packages/live-status-gateway"
12+
"packages/live-status-gateway",
13+
"packages/webui"
1314
],
1415
"prettier.enable": true,
1516
"sonarlint.connectedMode.project": { "projectKey": "nrkno_sofie-core" },

0 commit comments

Comments
 (0)