@catladder/pipeline 1.120.0 → 1.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/node/yarn.js +3 -2
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +40 -0
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +40 -0
- package/examples/__snapshots__/cloud-run-non-public.ts.snap +40 -0
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +80 -0
- package/examples/__snapshots__/cloud-run-with-sql.ts.snap +80 -0
- package/examples/__snapshots__/custom-build-job-with-tests.ts.snap +8 -0
- package/examples/__snapshots__/custom-build-job.ts.snap +8 -0
- package/examples/__snapshots__/custom-deploy.ts.snap +40 -0
- package/examples/__snapshots__/custom-envs.ts.snap +52 -0
- package/examples/__snapshots__/custom-sbom-java.ts.snap +8 -0
- package/examples/__snapshots__/kubernetes-application-customization.ts.snap +40 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +40 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +40 -0
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +80 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +40 -0
- package/examples/__snapshots__/meteor-kubernetes.ts.snap +40 -0
- package/examples/__snapshots__/native-app.ts.snap +80 -0
- package/examples/__snapshots__/node-build-with-custom-image.ts.snap +40 -0
- package/examples/__snapshots__/wait-for-other-deploy.ts.snap +80 -0
- package/package.json +1 -1
- package/src/build/node/yarn.ts +14 -6
|
@@ -34,9 +34,13 @@ exports[`matches snapshot 1`] = `
|
|
|
34
34
|
},
|
|
35
35
|
"script": [
|
|
36
36
|
"cd api",
|
|
37
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
38
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
37
39
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
38
40
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
41
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
39
42
|
"yarn install --immutable",
|
|
43
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
40
44
|
"yarn lint",
|
|
41
45
|
],
|
|
42
46
|
"stage": "test",
|
|
@@ -96,12 +100,18 @@ exports[`matches snapshot 1`] = `
|
|
|
96
100
|
},
|
|
97
101
|
"script": [
|
|
98
102
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
103
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
99
104
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
100
105
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
106
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
101
107
|
"cd api",
|
|
108
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
109
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
102
110
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
103
111
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
112
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
104
113
|
"yarn install --immutable",
|
|
114
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
105
115
|
"yarn build",
|
|
106
116
|
],
|
|
107
117
|
"stage": "build",
|
|
@@ -241,9 +251,13 @@ exports[`matches snapshot 1`] = `
|
|
|
241
251
|
},
|
|
242
252
|
"script": [
|
|
243
253
|
"cd api",
|
|
254
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
255
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
244
256
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
245
257
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
258
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
246
259
|
"yarn install --immutable",
|
|
260
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
247
261
|
"yarn test",
|
|
248
262
|
],
|
|
249
263
|
"stage": "test",
|
|
@@ -307,9 +321,13 @@ exports[`matches snapshot 1`] = `
|
|
|
307
321
|
},
|
|
308
322
|
"script": [
|
|
309
323
|
"cd www",
|
|
324
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
325
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
310
326
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
311
327
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
328
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
312
329
|
"yarn install --immutable",
|
|
330
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
313
331
|
"yarn lint",
|
|
314
332
|
],
|
|
315
333
|
"stage": "test",
|
|
@@ -369,12 +387,18 @@ exports[`matches snapshot 1`] = `
|
|
|
369
387
|
},
|
|
370
388
|
"script": [
|
|
371
389
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
|
|
390
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
372
391
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
373
392
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
393
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
374
394
|
"cd www",
|
|
395
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
396
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
375
397
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
376
398
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
399
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
377
400
|
"yarn install --immutable",
|
|
401
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
378
402
|
"yarn build",
|
|
379
403
|
],
|
|
380
404
|
"stage": "build",
|
|
@@ -518,9 +542,13 @@ exports[`matches snapshot 1`] = `
|
|
|
518
542
|
},
|
|
519
543
|
"script": [
|
|
520
544
|
"cd www",
|
|
545
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
546
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
521
547
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
522
548
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
549
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
523
550
|
"yarn install --immutable",
|
|
551
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
524
552
|
"yarn test",
|
|
525
553
|
],
|
|
526
554
|
"stage": "test",
|
|
@@ -656,9 +684,13 @@ exports[`matches snapshot 1`] = `
|
|
|
656
684
|
},
|
|
657
685
|
"script": [
|
|
658
686
|
"cd api",
|
|
687
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
688
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
659
689
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
660
690
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
691
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
661
692
|
"yarn install --immutable",
|
|
693
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
662
694
|
"yarn lint",
|
|
663
695
|
],
|
|
664
696
|
"stage": "test",
|
|
@@ -718,12 +750,18 @@ exports[`matches snapshot 1`] = `
|
|
|
718
750
|
},
|
|
719
751
|
"script": [
|
|
720
752
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
753
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
721
754
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
722
755
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
756
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
723
757
|
"cd api",
|
|
758
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
759
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
724
760
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
725
761
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
762
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
726
763
|
"yarn install --immutable",
|
|
764
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
727
765
|
"yarn build",
|
|
728
766
|
],
|
|
729
767
|
"stage": "build",
|
|
@@ -863,9 +901,13 @@ exports[`matches snapshot 1`] = `
|
|
|
863
901
|
},
|
|
864
902
|
"script": [
|
|
865
903
|
"cd api",
|
|
904
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
905
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
866
906
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
867
907
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
908
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
868
909
|
"yarn install --immutable",
|
|
910
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
869
911
|
"yarn test",
|
|
870
912
|
],
|
|
871
913
|
"stage": "test",
|
|
@@ -929,9 +971,13 @@ exports[`matches snapshot 1`] = `
|
|
|
929
971
|
},
|
|
930
972
|
"script": [
|
|
931
973
|
"cd www",
|
|
974
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
975
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
932
976
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
933
977
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
978
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
934
979
|
"yarn install --immutable",
|
|
980
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
935
981
|
"yarn lint",
|
|
936
982
|
],
|
|
937
983
|
"stage": "test",
|
|
@@ -991,12 +1037,18 @@ exports[`matches snapshot 1`] = `
|
|
|
991
1037
|
},
|
|
992
1038
|
"script": [
|
|
993
1039
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
|
|
1040
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
994
1041
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
995
1042
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1043
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
996
1044
|
"cd www",
|
|
1045
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1046
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
997
1047
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
998
1048
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1049
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
999
1050
|
"yarn install --immutable",
|
|
1051
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1000
1052
|
"yarn build",
|
|
1001
1053
|
],
|
|
1002
1054
|
"stage": "build",
|
|
@@ -1140,9 +1192,13 @@ exports[`matches snapshot 1`] = `
|
|
|
1140
1192
|
},
|
|
1141
1193
|
"script": [
|
|
1142
1194
|
"cd www",
|
|
1195
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1196
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1143
1197
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1144
1198
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1199
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1145
1200
|
"yarn install --immutable",
|
|
1201
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1146
1202
|
"yarn test",
|
|
1147
1203
|
],
|
|
1148
1204
|
"stage": "test",
|
|
@@ -1297,12 +1353,18 @@ exports[`matches snapshot 1`] = `
|
|
|
1297
1353
|
},
|
|
1298
1354
|
"script": [
|
|
1299
1355
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
1356
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1300
1357
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1301
1358
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1359
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1302
1360
|
"cd api",
|
|
1361
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1362
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1303
1363
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1304
1364
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1365
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1305
1366
|
"yarn install --immutable",
|
|
1367
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1306
1368
|
"yarn build",
|
|
1307
1369
|
],
|
|
1308
1370
|
"stage": "build",
|
|
@@ -1370,12 +1432,18 @@ exports[`matches snapshot 1`] = `
|
|
|
1370
1432
|
},
|
|
1371
1433
|
"script": [
|
|
1372
1434
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > api/__build_info.json",
|
|
1435
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1373
1436
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1374
1437
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1438
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1375
1439
|
"cd api",
|
|
1440
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1441
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1376
1442
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1377
1443
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1444
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1378
1445
|
"yarn install --immutable",
|
|
1446
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1379
1447
|
"yarn build",
|
|
1380
1448
|
],
|
|
1381
1449
|
"stage": "build",
|
|
@@ -1597,12 +1665,18 @@ exports[`matches snapshot 1`] = `
|
|
|
1597
1665
|
},
|
|
1598
1666
|
"script": [
|
|
1599
1667
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
|
|
1668
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1600
1669
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1601
1670
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1671
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1602
1672
|
"cd www",
|
|
1673
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1674
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1603
1675
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1604
1676
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1677
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1605
1678
|
"yarn install --immutable",
|
|
1679
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1606
1680
|
"yarn build",
|
|
1607
1681
|
],
|
|
1608
1682
|
"stage": "build",
|
|
@@ -1670,12 +1744,18 @@ exports[`matches snapshot 1`] = `
|
|
|
1670
1744
|
},
|
|
1671
1745
|
"script": [
|
|
1672
1746
|
"echo '{"id":"some-id","time":"01-01-2023 12:13:14"}' > www/__build_info.json",
|
|
1747
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1673
1748
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1674
1749
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1750
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1675
1751
|
"cd www",
|
|
1752
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):yarn prepare[collapsed=true]\\r\\e[0KNode and yarn install"",
|
|
1753
|
+
"echo -e "\\e[0Ksection_start:$(date +%s):node install[collapsed=true]\\r\\e[0KEnsure node version"",
|
|
1676
1754
|
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
1677
1755
|
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
1756
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):node install\\r\\e[0K"",
|
|
1678
1757
|
"yarn install --immutable",
|
|
1758
|
+
"echo -e "\\e[0Ksection_end:$(date +%s):yarn prepare\\r\\e[0K"",
|
|
1679
1759
|
"yarn build",
|
|
1680
1760
|
],
|
|
1681
1761
|
"stage": "build",
|
package/package.json
CHANGED
package/src/build/node/yarn.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Context } from "../../types";
|
|
2
2
|
import { ensureArray } from "../../utils";
|
|
3
|
+
import { collapseableSection } from "../../utils/gitlab";
|
|
3
4
|
|
|
4
5
|
const YARN_INSTALL_CLASSIC = `yarn install --frozen-lockfile`;
|
|
5
6
|
|
|
@@ -14,10 +15,14 @@ const getYarnInstallCommand = (context: Context) => {
|
|
|
14
15
|
return `yarn install --immutable`;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
export const ensureNodeVersion = (context: Context) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export const ensureNodeVersion = (context: Context) =>
|
|
19
|
+
collapseableSection(
|
|
20
|
+
"node install",
|
|
21
|
+
"Ensure node version"
|
|
22
|
+
)([
|
|
23
|
+
"if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi",
|
|
24
|
+
"if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi",
|
|
25
|
+
]);
|
|
21
26
|
|
|
22
27
|
export const getYarnInstall = (
|
|
23
28
|
context: Context,
|
|
@@ -29,13 +34,16 @@ export const getYarnInstall = (
|
|
|
29
34
|
"postInstall" in context.componentConfig.build
|
|
30
35
|
? context.componentConfig.build.postInstall
|
|
31
36
|
: null;
|
|
32
|
-
return
|
|
37
|
+
return collapseableSection(
|
|
38
|
+
"yarn prepare",
|
|
39
|
+
"Node and yarn install"
|
|
40
|
+
)([
|
|
33
41
|
...ensureNodeVersion(context),
|
|
34
42
|
getYarnInstallCommand(context),
|
|
35
43
|
...(postInstall && !options?.noCustomPostInstall
|
|
36
44
|
? ensureArray(postInstall) ?? []
|
|
37
45
|
: []),
|
|
38
|
-
];
|
|
46
|
+
]);
|
|
39
47
|
};
|
|
40
48
|
|
|
41
49
|
const DOCKER_COPY_FILES = `COPY --chown=node:node $APP_DIR .`;
|