@catladder/pipeline 3.25.0 → 3.27.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.
Files changed (77) hide show
  1. package/dist/build/custom/testJob.js +1 -2
  2. package/dist/build/node/testJob.js +1 -2
  3. package/dist/build/node/yarn.js +3 -2
  4. package/dist/build/rails/test.js +1 -2
  5. package/dist/constants.js +1 -1
  6. package/dist/deploy/types/googleCloudRun.d.ts +1 -1
  7. package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
  8. package/dist/pipeline/agent/shared.d.ts +1 -1
  9. package/dist/pipeline/agent/shared.js +0 -1
  10. package/dist/pipeline/createMainPipeline.js +1 -0
  11. package/dist/pipeline/gitlab/cache.d.ts +9 -0
  12. package/dist/pipeline/gitlab/cache.js +47 -0
  13. package/dist/pipeline/gitlab/createGitlabJobs.js +7 -7
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/types/jobs.d.ts +2 -3
  16. package/examples/__snapshots__/automatic-releases.test.ts.snap +141 -31
  17. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +141 -31
  18. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +141 -31
  19. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +141 -31
  20. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +141 -31
  21. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +141 -31
  22. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +133 -27
  23. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +144 -32
  24. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +141 -31
  25. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +141 -31
  26. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +141 -31
  27. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +141 -31
  28. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +141 -31
  29. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +141 -31
  30. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +141 -31
  31. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +141 -31
  32. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +141 -31
  33. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +21 -11
  34. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +144 -32
  35. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +141 -31
  36. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +141 -31
  37. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +141 -31
  38. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +423 -93
  39. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +282 -62
  40. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +141 -31
  41. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +141 -31
  42. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +93 -22
  43. package/examples/__snapshots__/custom-deploy.test.ts.snap +141 -31
  44. package/examples/__snapshots__/custom-envs.test.ts.snap +328 -40
  45. package/examples/__snapshots__/custom-verify-job.test.ts.snap +144 -32
  46. package/examples/__snapshots__/git-submodule.test.ts.snap +141 -31
  47. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +141 -31
  48. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +141 -31
  49. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +282 -62
  50. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +141 -31
  51. package/examples/__snapshots__/local-dot-env.test.ts.snap +141 -31
  52. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +133 -27
  53. package/examples/__snapshots__/modify-generated-files.test.ts.snap +124 -20
  54. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +124 -20
  55. package/examples/__snapshots__/multiline-var.test.ts.snap +423 -93
  56. package/examples/__snapshots__/native-app.test.ts.snap +277 -57
  57. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +141 -31
  58. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +141 -31
  59. package/examples/__snapshots__/override-secrets.test.ts.snap +141 -31
  60. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +84 -22
  61. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +84 -22
  62. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +423 -93
  63. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +260 -52
  64. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +161 -43
  65. package/examples/__snapshots__/workspace-api-www.test.ts.snap +161 -43
  66. package/package.json +1 -1
  67. package/src/build/custom/testJob.ts +0 -1
  68. package/src/build/node/testJob.ts +0 -1
  69. package/src/build/node/yarn.ts +3 -2
  70. package/src/build/rails/test.ts +0 -1
  71. package/src/deploy/types/googleCloudRun.ts +1 -1
  72. package/src/pipeline/agent/createAgentReviewJob.ts +1 -0
  73. package/src/pipeline/agent/shared.ts +2 -2
  74. package/src/pipeline/createMainPipeline.ts +1 -0
  75. package/src/pipeline/gitlab/cache.ts +49 -0
  76. package/src/pipeline/gitlab/createGitlabJobs.ts +7 -9
  77. package/src/types/jobs.ts +2 -3
@@ -103,7 +103,7 @@ before_script:
103
103
  local section_title="\${1}"
104
104
  echo -e "section_end:\`date +%s\`:\${section_title}\\r\\e[0K"
105
105
  }
106
- api 🛡 audit:
106
+ 'api 🛡 audit | dev ':
107
107
  stage: test
108
108
  image: path/to/docker/jobs-default:the-version
109
109
  variables:
@@ -120,9 +120,6 @@ api 🛡 audit:
120
120
  - when: never
121
121
  if: $CI_PIPELINE_SOURCE == "trigger"
122
122
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
123
- - when: never
124
- if: $CI_PIPELINE_SOURCE == "trigger"
125
- - if: $CI_MERGE_REQUEST_ID
126
123
  needs: []
127
124
  retry: &a1
128
125
  max: 2
@@ -131,7 +128,7 @@ api 🛡 audit:
131
128
  - stuck_or_timeout_failure
132
129
  interruptible: true
133
130
  allow_failure: true
134
- api 👮 lint:
131
+ 'api 👮 lint | dev ':
135
132
  stage: test
136
133
  image: path/to/docker/jobs-default:the-version
137
134
  variables:
@@ -152,7 +149,7 @@ api 👮 lint:
152
149
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
153
150
  - collapseable_section_end "nodeinstall"
154
151
  - collapseable_section_start "yarninstall" "Yarn install"
155
- - yarn install --immutable
152
+ - yarn install --immutable --inline-builds
156
153
  - collapseable_section_end "yarninstall"
157
154
  - yarn lint
158
155
  cache:
@@ -168,13 +165,10 @@ api 👮 lint:
168
165
  - when: never
169
166
  if: $CI_PIPELINE_SOURCE == "trigger"
170
167
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
171
- - when: never
172
- if: $CI_PIPELINE_SOURCE == "trigger"
173
- - if: $CI_MERGE_REQUEST_ID
174
168
  needs: []
175
169
  retry: *a1
176
170
  interruptible: true
177
- api 🧪 test:
171
+ 'api 🧪 test | dev ':
178
172
  stage: test
179
173
  image: path/to/docker/jobs-testing-chrome:the-version
180
174
  variables:
@@ -195,7 +189,7 @@ api 🧪 test:
195
189
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
196
190
  - collapseable_section_end "nodeinstall"
197
191
  - collapseable_section_start "yarninstall" "Yarn install"
198
- - yarn install --immutable
192
+ - yarn install --immutable --inline-builds
199
193
  - collapseable_section_end "yarninstall"
200
194
  - yarn test
201
195
  cache:
@@ -211,9 +205,6 @@ api 🧪 test:
211
205
  - when: never
212
206
  if: $CI_PIPELINE_SOURCE == "trigger"
213
207
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
214
- - when: never
215
- if: $CI_PIPELINE_SOURCE == "trigger"
216
- - if: $CI_MERGE_REQUEST_ID
217
208
  needs: []
218
209
  retry: *a1
219
210
  interruptible: true
@@ -252,7 +243,7 @@ api 🧪 test:
252
243
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
253
244
  - collapseable_section_end "nodeinstall"
254
245
  - collapseable_section_start "yarninstall" "Yarn install"
255
- - yarn install --immutable
246
+ - yarn install --immutable --inline-builds
256
247
  - collapseable_section_end "yarninstall"
257
248
  - yarn build
258
249
  cache:
@@ -307,7 +298,8 @@ api 🧪 test:
307
298
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
308
299
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
309
300
  - |-
310
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
301
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
302
+ COPY --chown=node:node $APP_DIR .
311
303
  RUN yarn plugin import workspace-tools
312
304
  RUN yarn workspaces focus --production && yarn rebuild"
313
305
  - |-
@@ -485,17 +477,17 @@ api 🧪 test:
485
477
  - when: on_success
486
478
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
487
479
  needs:
488
- - job: api 👮 lint
480
+ - job: 'api 👮 lint | dev '
489
481
  artifacts: false
490
482
  - job: 'api 🔨 app | dev '
491
483
  artifacts: false
492
484
  - job: 'api 🔨 docker | dev '
493
485
  artifacts: false
494
- - job: api 🧪 test
486
+ - job: 'api 🧪 test | dev '
495
487
  artifacts: false
496
488
  - job: 'api 🧾 sbom | dev '
497
489
  artifacts: true
498
- - job: api 🛡 audit
490
+ - job: 'api 🛡 audit | dev '
499
491
  artifacts: false
500
492
  retry: *a1
501
493
  interruptible: true
@@ -600,6 +592,115 @@ api 🧪 test:
600
592
  retry: *a1
601
593
  interruptible: true
602
594
  allow_failure: true
595
+ 'api 🛡 audit | review ':
596
+ stage: test
597
+ image: path/to/docker/jobs-default:the-version
598
+ variables:
599
+ KUBERNETES_CPU_REQUEST: '0.45'
600
+ KUBERNETES_MEMORY_REQUEST: 1Gi
601
+ KUBERNETES_MEMORY_LIMIT: 4Gi
602
+ script:
603
+ - collapseable_section_start "injectvars" "Injecting variables"
604
+ - export APP_PATH="api"
605
+ - collapseable_section_end "injectvars"
606
+ - cd api
607
+ - yarn npm audit --environment production
608
+ rules:
609
+ - when: never
610
+ if: $CI_PIPELINE_SOURCE == "trigger"
611
+ - if: $CI_MERGE_REQUEST_ID
612
+ needs: []
613
+ retry: *a1
614
+ interruptible: true
615
+ allow_failure: true
616
+ 'api 👮 lint | review ':
617
+ stage: test
618
+ image: path/to/docker/jobs-default:the-version
619
+ variables:
620
+ KUBERNETES_CPU_REQUEST: '0.45'
621
+ KUBERNETES_MEMORY_REQUEST: 1Gi
622
+ KUBERNETES_MEMORY_LIMIT: 4Gi
623
+ script:
624
+ - collapseable_section_start "injectvars" "Injecting variables"
625
+ - export APP_PATH="api"
626
+ - collapseable_section_end "injectvars"
627
+ - collapseable_section_start "nodeinstall" "Ensure node version"
628
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
629
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
630
+ - collapseable_section_end "nodeinstall"
631
+ - cd api
632
+ - collapseable_section_start "nodeinstall" "Ensure node version"
633
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
634
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
635
+ - collapseable_section_end "nodeinstall"
636
+ - collapseable_section_start "yarninstall" "Yarn install"
637
+ - yarn install --immutable --inline-builds
638
+ - collapseable_section_end "yarninstall"
639
+ - yarn lint
640
+ cache:
641
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
642
+ policy: pull-push
643
+ paths:
644
+ - api/.yarn
645
+ fallback_keys:
646
+ - api-yarn
647
+ - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
648
+ policy: pull-push
649
+ paths:
650
+ - api/node_modules
651
+ fallback_keys:
652
+ - api-node-modules
653
+ rules:
654
+ - when: never
655
+ if: $CI_PIPELINE_SOURCE == "trigger"
656
+ - if: $CI_MERGE_REQUEST_ID
657
+ needs: []
658
+ retry: *a1
659
+ interruptible: true
660
+ 'api 🧪 test | review ':
661
+ stage: test
662
+ image: path/to/docker/jobs-testing-chrome:the-version
663
+ variables:
664
+ KUBERNETES_CPU_REQUEST: '0.45'
665
+ KUBERNETES_MEMORY_REQUEST: 1Gi
666
+ KUBERNETES_MEMORY_LIMIT: 4Gi
667
+ script:
668
+ - collapseable_section_start "injectvars" "Injecting variables"
669
+ - export APP_PATH="api"
670
+ - collapseable_section_end "injectvars"
671
+ - collapseable_section_start "nodeinstall" "Ensure node version"
672
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
673
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
674
+ - collapseable_section_end "nodeinstall"
675
+ - cd api
676
+ - collapseable_section_start "nodeinstall" "Ensure node version"
677
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
678
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
679
+ - collapseable_section_end "nodeinstall"
680
+ - collapseable_section_start "yarninstall" "Yarn install"
681
+ - yarn install --immutable --inline-builds
682
+ - collapseable_section_end "yarninstall"
683
+ - yarn test
684
+ cache:
685
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
686
+ policy: pull-push
687
+ paths:
688
+ - api/.yarn
689
+ fallback_keys:
690
+ - api-yarn
691
+ - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
692
+ policy: pull-push
693
+ paths:
694
+ - api/node_modules
695
+ fallback_keys:
696
+ - api-node-modules
697
+ rules:
698
+ - when: never
699
+ if: $CI_PIPELINE_SOURCE == "trigger"
700
+ - if: $CI_MERGE_REQUEST_ID
701
+ needs: []
702
+ retry: *a1
703
+ interruptible: true
603
704
  'api 🔨 app | review ':
604
705
  stage: build
605
706
  image: path/to/docker/jobs-default:the-version
@@ -635,18 +736,22 @@ api 🧪 test:
635
736
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
636
737
  - collapseable_section_end "nodeinstall"
637
738
  - collapseable_section_start "yarninstall" "Yarn install"
638
- - yarn install --immutable
739
+ - yarn install --immutable --inline-builds
639
740
  - collapseable_section_end "yarninstall"
640
741
  - yarn build
641
742
  cache:
642
- - key: api-yarn
743
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
643
744
  policy: pull-push
644
745
  paths:
645
746
  - api/.yarn
646
- - key: api-node-modules
747
+ fallback_keys:
748
+ - api-yarn
749
+ - key: api-node-modules-mr$CI_MERGE_REQUEST_IID
647
750
  policy: pull-push
648
751
  paths:
649
752
  - api/node_modules
753
+ fallback_keys:
754
+ - api-node-modules
650
755
  artifacts:
651
756
  paths:
652
757
  - api/__build_info.json
@@ -690,7 +795,8 @@ api 🧪 test:
690
795
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
691
796
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
692
797
  - |-
693
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
798
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
799
+ COPY --chown=node:node $APP_DIR .
694
800
  RUN yarn plugin import workspace-tools
695
801
  RUN yarn workspaces focus --production && yarn rebuild"
696
802
  - |-
@@ -712,10 +818,12 @@ api 🧪 test:
712
818
  - docker push $DOCKER_CACHE_IMAGE
713
819
  - collapseable_section_end "docker-push"
714
820
  cache:
715
- - key: api-yarn
821
+ - key: api-yarn-mr$CI_MERGE_REQUEST_IID
716
822
  policy: pull
717
823
  paths:
718
824
  - api/.yarn
825
+ fallback_keys:
826
+ - api-yarn
719
827
  rules:
720
828
  - when: never
721
829
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -864,17 +972,17 @@ api 🧪 test:
864
972
  - when: on_success
865
973
  if: $CI_MERGE_REQUEST_ID
866
974
  needs:
867
- - job: api 👮 lint
975
+ - job: 'api 👮 lint | review '
868
976
  artifacts: false
869
977
  - job: 'api 🔨 app | review '
870
978
  artifacts: false
871
979
  - job: 'api 🔨 docker | review '
872
980
  artifacts: false
873
- - job: api 🧪 test
981
+ - job: 'api 🧪 test | review '
874
982
  artifacts: false
875
983
  - job: 'api 🧾 sbom | review '
876
984
  artifacts: true
877
- - job: api 🛡 audit
985
+ - job: 'api 🛡 audit | review '
878
986
  artifacts: false
879
987
  retry: *a1
880
988
  interruptible: true
@@ -1014,7 +1122,7 @@ api 🧪 test:
1014
1122
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1015
1123
  - collapseable_section_end "nodeinstall"
1016
1124
  - collapseable_section_start "yarninstall" "Yarn install"
1017
- - yarn install --immutable
1125
+ - yarn install --immutable --inline-builds
1018
1126
  - collapseable_section_end "yarninstall"
1019
1127
  - yarn build
1020
1128
  cache:
@@ -1069,7 +1177,8 @@ api 🧪 test:
1069
1177
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
1070
1178
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1071
1179
  - |-
1072
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1180
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1181
+ COPY --chown=node:node $APP_DIR .
1073
1182
  RUN yarn plugin import workspace-tools
1074
1183
  RUN yarn workspaces focus --production && yarn rebuild"
1075
1184
  - |-
@@ -1390,7 +1499,7 @@ api 🧪 test:
1390
1499
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1391
1500
  - collapseable_section_end "nodeinstall"
1392
1501
  - collapseable_section_start "yarninstall" "Yarn install"
1393
- - yarn install --immutable
1502
+ - yarn install --immutable --inline-builds
1394
1503
  - collapseable_section_end "yarninstall"
1395
1504
  - yarn build
1396
1505
  cache:
@@ -1445,7 +1554,8 @@ api 🧪 test:
1445
1554
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
1446
1555
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1447
1556
  - |-
1448
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
1557
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
1558
+ COPY --chown=node:node $APP_DIR .
1449
1559
  RUN yarn plugin import workspace-tools
1450
1560
  RUN yarn workspaces focus --production && yarn rebuild"
1451
1561
  - |-
@@ -1731,7 +1841,7 @@ api 🧪 test:
1731
1841
  retry: *a1
1732
1842
  interruptible: true
1733
1843
  allow_failure: true
1734
- www 🛡 audit:
1844
+ 'www 🛡 audit | dev ':
1735
1845
  stage: test
1736
1846
  image: path/to/docker/jobs-default:the-version
1737
1847
  variables:
@@ -1748,14 +1858,11 @@ www 🛡 audit:
1748
1858
  - when: never
1749
1859
  if: $CI_PIPELINE_SOURCE == "trigger"
1750
1860
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1751
- - when: never
1752
- if: $CI_PIPELINE_SOURCE == "trigger"
1753
- - if: $CI_MERGE_REQUEST_ID
1754
1861
  needs: []
1755
1862
  retry: *a1
1756
1863
  interruptible: true
1757
1864
  allow_failure: true
1758
- www 👮 lint:
1865
+ 'www 👮 lint | dev ':
1759
1866
  stage: test
1760
1867
  image: path/to/docker/jobs-default:the-version
1761
1868
  variables:
@@ -1776,7 +1883,7 @@ www 👮 lint:
1776
1883
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1777
1884
  - collapseable_section_end "nodeinstall"
1778
1885
  - collapseable_section_start "yarninstall" "Yarn install"
1779
- - yarn install --immutable
1886
+ - yarn install --immutable --inline-builds
1780
1887
  - collapseable_section_end "yarninstall"
1781
1888
  - yarn lint
1782
1889
  cache:
@@ -1792,13 +1899,10 @@ www 👮 lint:
1792
1899
  - when: never
1793
1900
  if: $CI_PIPELINE_SOURCE == "trigger"
1794
1901
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1795
- - when: never
1796
- if: $CI_PIPELINE_SOURCE == "trigger"
1797
- - if: $CI_MERGE_REQUEST_ID
1798
1902
  needs: []
1799
1903
  retry: *a1
1800
1904
  interruptible: true
1801
- www 🧪 test:
1905
+ 'www 🧪 test | dev ':
1802
1906
  stage: test
1803
1907
  image: path/to/docker/jobs-testing-chrome:the-version
1804
1908
  variables:
@@ -1819,7 +1923,7 @@ www 🧪 test:
1819
1923
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1820
1924
  - collapseable_section_end "nodeinstall"
1821
1925
  - collapseable_section_start "yarninstall" "Yarn install"
1822
- - yarn install --immutable
1926
+ - yarn install --immutable --inline-builds
1823
1927
  - collapseable_section_end "yarninstall"
1824
1928
  - yarn test
1825
1929
  cache:
@@ -1835,9 +1939,6 @@ www 🧪 test:
1835
1939
  - when: never
1836
1940
  if: $CI_PIPELINE_SOURCE == "trigger"
1837
1941
  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1838
- - when: never
1839
- if: $CI_PIPELINE_SOURCE == "trigger"
1840
- - if: $CI_MERGE_REQUEST_ID
1841
1942
  needs: []
1842
1943
  retry: *a1
1843
1944
  interruptible: true
@@ -1892,7 +1993,7 @@ www 🧪 test:
1892
1993
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
1893
1994
  - collapseable_section_end "nodeinstall"
1894
1995
  - collapseable_section_start "yarninstall" "Yarn install"
1895
- - yarn install --immutable
1996
+ - yarn install --immutable --inline-builds
1896
1997
  - collapseable_section_end "yarninstall"
1897
1998
  - yarn build
1898
1999
  cache:
@@ -1948,7 +2049,8 @@ www 🧪 test:
1948
2049
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
1949
2050
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1950
2051
  - |-
1951
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2052
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2053
+ COPY --chown=node:node $APP_DIR .
1952
2054
  RUN yarn plugin import workspace-tools
1953
2055
  RUN yarn workspaces focus --production && yarn rebuild"
1954
2056
  - |-
@@ -2116,17 +2218,17 @@ www 🧪 test:
2116
2218
  - when: on_success
2117
2219
  if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
2118
2220
  needs:
2119
- - job: www 👮 lint
2221
+ - job: 'www 👮 lint | dev '
2120
2222
  artifacts: false
2121
2223
  - job: 'www 🔨 app | dev '
2122
2224
  artifacts: false
2123
2225
  - job: 'www 🔨 docker | dev '
2124
2226
  artifacts: false
2125
- - job: www 🧪 test
2227
+ - job: 'www 🧪 test | dev '
2126
2228
  artifacts: false
2127
2229
  - job: 'www 🧾 sbom | dev '
2128
2230
  artifacts: true
2129
- - job: www 🛡 audit
2231
+ - job: 'www 🛡 audit | dev '
2130
2232
  artifacts: false
2131
2233
  retry: *a1
2132
2234
  interruptible: true
@@ -2231,6 +2333,115 @@ www 🧪 test:
2231
2333
  retry: *a1
2232
2334
  interruptible: true
2233
2335
  allow_failure: true
2336
+ 'www 🛡 audit | review ':
2337
+ stage: test
2338
+ image: path/to/docker/jobs-default:the-version
2339
+ variables:
2340
+ KUBERNETES_CPU_REQUEST: '0.45'
2341
+ KUBERNETES_MEMORY_REQUEST: 1Gi
2342
+ KUBERNETES_MEMORY_LIMIT: 4Gi
2343
+ script:
2344
+ - collapseable_section_start "injectvars" "Injecting variables"
2345
+ - export APP_PATH="www"
2346
+ - collapseable_section_end "injectvars"
2347
+ - cd www
2348
+ - yarn npm audit --environment production
2349
+ rules:
2350
+ - when: never
2351
+ if: $CI_PIPELINE_SOURCE == "trigger"
2352
+ - if: $CI_MERGE_REQUEST_ID
2353
+ needs: []
2354
+ retry: *a1
2355
+ interruptible: true
2356
+ allow_failure: true
2357
+ 'www 👮 lint | review ':
2358
+ stage: test
2359
+ image: path/to/docker/jobs-default:the-version
2360
+ variables:
2361
+ KUBERNETES_CPU_REQUEST: '0.45'
2362
+ KUBERNETES_MEMORY_REQUEST: 1Gi
2363
+ KUBERNETES_MEMORY_LIMIT: 4Gi
2364
+ script:
2365
+ - collapseable_section_start "injectvars" "Injecting variables"
2366
+ - export APP_PATH="www"
2367
+ - collapseable_section_end "injectvars"
2368
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2369
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2370
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2371
+ - collapseable_section_end "nodeinstall"
2372
+ - cd www
2373
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2374
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2375
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2376
+ - collapseable_section_end "nodeinstall"
2377
+ - collapseable_section_start "yarninstall" "Yarn install"
2378
+ - yarn install --immutable --inline-builds
2379
+ - collapseable_section_end "yarninstall"
2380
+ - yarn lint
2381
+ cache:
2382
+ - key: www-yarn-mr$CI_MERGE_REQUEST_IID
2383
+ policy: pull-push
2384
+ paths:
2385
+ - www/.yarn
2386
+ fallback_keys:
2387
+ - www-yarn
2388
+ - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
2389
+ policy: pull-push
2390
+ paths:
2391
+ - www/node_modules
2392
+ fallback_keys:
2393
+ - www-node-modules
2394
+ rules:
2395
+ - when: never
2396
+ if: $CI_PIPELINE_SOURCE == "trigger"
2397
+ - if: $CI_MERGE_REQUEST_ID
2398
+ needs: []
2399
+ retry: *a1
2400
+ interruptible: true
2401
+ 'www 🧪 test | review ':
2402
+ stage: test
2403
+ image: path/to/docker/jobs-testing-chrome:the-version
2404
+ variables:
2405
+ KUBERNETES_CPU_REQUEST: '0.45'
2406
+ KUBERNETES_MEMORY_REQUEST: 1Gi
2407
+ KUBERNETES_MEMORY_LIMIT: 4Gi
2408
+ script:
2409
+ - collapseable_section_start "injectvars" "Injecting variables"
2410
+ - export APP_PATH="www"
2411
+ - collapseable_section_end "injectvars"
2412
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2413
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2414
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2415
+ - collapseable_section_end "nodeinstall"
2416
+ - cd www
2417
+ - collapseable_section_start "nodeinstall" "Ensure node version"
2418
+ - if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
2419
+ - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2420
+ - collapseable_section_end "nodeinstall"
2421
+ - collapseable_section_start "yarninstall" "Yarn install"
2422
+ - yarn install --immutable --inline-builds
2423
+ - collapseable_section_end "yarninstall"
2424
+ - yarn test
2425
+ cache:
2426
+ - key: www-yarn-mr$CI_MERGE_REQUEST_IID
2427
+ policy: pull-push
2428
+ paths:
2429
+ - www/.yarn
2430
+ fallback_keys:
2431
+ - www-yarn
2432
+ - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
2433
+ policy: pull-push
2434
+ paths:
2435
+ - www/node_modules
2436
+ fallback_keys:
2437
+ - www-node-modules
2438
+ rules:
2439
+ - when: never
2440
+ if: $CI_PIPELINE_SOURCE == "trigger"
2441
+ - if: $CI_MERGE_REQUEST_ID
2442
+ needs: []
2443
+ retry: *a1
2444
+ interruptible: true
2234
2445
  'www 🔨 app | review ':
2235
2446
  stage: build
2236
2447
  image: path/to/docker/jobs-default:the-version
@@ -2282,18 +2493,22 @@ www 🧪 test:
2282
2493
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2283
2494
  - collapseable_section_end "nodeinstall"
2284
2495
  - collapseable_section_start "yarninstall" "Yarn install"
2285
- - yarn install --immutable
2496
+ - yarn install --immutable --inline-builds
2286
2497
  - collapseable_section_end "yarninstall"
2287
2498
  - yarn build
2288
2499
  cache:
2289
- - key: www-yarn
2500
+ - key: www-yarn-mr$CI_MERGE_REQUEST_IID
2290
2501
  policy: pull-push
2291
2502
  paths:
2292
2503
  - www/.yarn
2293
- - key: www-node-modules
2504
+ fallback_keys:
2505
+ - www-yarn
2506
+ - key: www-node-modules-mr$CI_MERGE_REQUEST_IID
2294
2507
  policy: pull-push
2295
2508
  paths:
2296
2509
  - www/node_modules
2510
+ fallback_keys:
2511
+ - www-node-modules
2297
2512
  artifacts:
2298
2513
  paths:
2299
2514
  - www/__build_info.json
@@ -2338,7 +2553,8 @@ www 🧪 test:
2338
2553
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
2339
2554
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2340
2555
  - |-
2341
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2556
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2557
+ COPY --chown=node:node $APP_DIR .
2342
2558
  RUN yarn plugin import workspace-tools
2343
2559
  RUN yarn workspaces focus --production && yarn rebuild"
2344
2560
  - |-
@@ -2360,10 +2576,12 @@ www 🧪 test:
2360
2576
  - docker push $DOCKER_CACHE_IMAGE
2361
2577
  - collapseable_section_end "docker-push"
2362
2578
  cache:
2363
- - key: www-yarn
2579
+ - key: www-yarn-mr$CI_MERGE_REQUEST_IID
2364
2580
  policy: pull
2365
2581
  paths:
2366
2582
  - www/.yarn
2583
+ fallback_keys:
2584
+ - www-yarn
2367
2585
  rules:
2368
2586
  - when: never
2369
2587
  if: $CI_PIPELINE_SOURCE == "trigger"
@@ -2507,17 +2725,17 @@ www 🧪 test:
2507
2725
  - when: on_success
2508
2726
  if: $CI_MERGE_REQUEST_ID
2509
2727
  needs:
2510
- - job: www 👮 lint
2728
+ - job: 'www 👮 lint | review '
2511
2729
  artifacts: false
2512
2730
  - job: 'www 🔨 app | review '
2513
2731
  artifacts: false
2514
2732
  - job: 'www 🔨 docker | review '
2515
2733
  artifacts: false
2516
- - job: www 🧪 test
2734
+ - job: 'www 🧪 test | review '
2517
2735
  artifacts: false
2518
2736
  - job: 'www 🧾 sbom | review '
2519
2737
  artifacts: true
2520
- - job: www 🛡 audit
2738
+ - job: 'www 🛡 audit | review '
2521
2739
  artifacts: false
2522
2740
  retry: *a1
2523
2741
  interruptible: true
@@ -2673,7 +2891,7 @@ www 🧪 test:
2673
2891
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
2674
2892
  - collapseable_section_end "nodeinstall"
2675
2893
  - collapseable_section_start "yarninstall" "Yarn install"
2676
- - yarn install --immutable
2894
+ - yarn install --immutable --inline-builds
2677
2895
  - collapseable_section_end "yarninstall"
2678
2896
  - yarn build
2679
2897
  cache:
@@ -2729,7 +2947,8 @@ www 🧪 test:
2729
2947
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
2730
2948
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
2731
2949
  - |-
2732
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
2950
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
2951
+ COPY --chown=node:node $APP_DIR .
2733
2952
  RUN yarn plugin import workspace-tools
2734
2953
  RUN yarn workspaces focus --production && yarn rebuild"
2735
2954
  - |-
@@ -3056,7 +3275,7 @@ www 🧪 test:
3056
3275
  - if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
3057
3276
  - collapseable_section_end "nodeinstall"
3058
3277
  - collapseable_section_start "yarninstall" "Yarn install"
3059
- - yarn install --immutable
3278
+ - yarn install --immutable --inline-builds
3060
3279
  - collapseable_section_end "yarninstall"
3061
3280
  - yarn build
3062
3281
  cache:
@@ -3112,7 +3331,8 @@ www 🧪 test:
3112
3331
  - export DOCKER_IMAGE="$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME"
3113
3332
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
3114
3333
  - |-
3115
- export DOCKER_COPY_AND_INSTALL_APP="COPY --chown=node:node $APP_DIR .
3334
+ export DOCKER_COPY_AND_INSTALL_APP="ENV YARN_ENABLE_INLINE_BUILDS=1
3335
+ COPY --chown=node:node $APP_DIR .
3116
3336
  RUN yarn plugin import workspace-tools
3117
3337
  RUN yarn workspaces focus --production && yarn rebuild"
3118
3338
  - |-