@catladder/pipeline 3.24.0 → 3.26.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/custom/testJob.js +1 -2
- package/dist/build/index.js +2 -1
- package/dist/build/node/testJob.js +1 -2
- package/dist/build/rails/test.js +1 -2
- package/dist/constants.js +1 -1
- package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
- package/dist/pipeline/agent/shared.d.ts +1 -1
- package/dist/pipeline/agent/shared.js +0 -1
- package/dist/pipeline/createMainPipeline.js +1 -0
- package/dist/pipeline/gitlab/cache.d.ts +9 -0
- package/dist/pipeline/gitlab/cache.js +47 -0
- package/dist/pipeline/gitlab/createGitlabJobs.js +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/jobs.d.ts +2 -3
- package/examples/__snapshots__/automatic-releases.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +127 -21
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +134 -22
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +13 -3
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +134 -22
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +393 -63
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +262 -42
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +131 -21
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +131 -21
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +93 -22
- package/examples/__snapshots__/custom-deploy.test.ts.snap +131 -21
- package/examples/__snapshots__/custom-envs.test.ts.snap +326 -32
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +134 -22
- package/examples/__snapshots__/git-submodule.test.ts.snap +131 -21
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +135 -21
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +135 -21
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +266 -42
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +135 -21
- package/examples/__snapshots__/local-dot-env.test.ts.snap +135 -21
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +127 -21
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +122 -14
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +122 -14
- package/examples/__snapshots__/multiline-var.test.ts.snap +393 -63
- package/examples/__snapshots__/native-app.test.ts.snap +265 -41
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +131 -21
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +131 -21
- package/examples/__snapshots__/override-secrets.test.ts.snap +131 -21
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +84 -22
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +84 -22
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +393 -63
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +256 -40
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +147 -29
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +147 -29
- package/package.json +1 -1
- package/src/build/custom/testJob.ts +0 -1
- package/src/build/index.ts +1 -0
- package/src/build/node/testJob.ts +0 -1
- package/src/build/rails/test.ts +0 -1
- package/src/pipeline/agent/createAgentReviewJob.ts +1 -0
- package/src/pipeline/agent/shared.ts +2 -2
- package/src/pipeline/createMainPipeline.ts +1 -0
- package/src/pipeline/gitlab/cache.ts +49 -0
- package/src/pipeline/gitlab/createGitlabJobs.ts +7 -9
- 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
|
-
www 🛡 audit:
|
|
106
|
+
'www 🛡 audit | dev ':
|
|
107
107
|
stage: test
|
|
108
108
|
image: path/to/docker/jobs-default:the-version
|
|
109
109
|
variables:
|
|
@@ -120,9 +120,6 @@ www 🛡 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 @@ www 🛡 audit:
|
|
|
131
128
|
- stuck_or_timeout_failure
|
|
132
129
|
interruptible: true
|
|
133
130
|
allow_failure: true
|
|
134
|
-
www 👮 lint:
|
|
131
|
+
'www 👮 lint | dev ':
|
|
135
132
|
stage: test
|
|
136
133
|
image: path/to/docker/jobs-default:the-version
|
|
137
134
|
variables:
|
|
@@ -168,13 +165,10 @@ www 👮 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
|
-
www 🧪 test:
|
|
171
|
+
'www 🧪 test | dev ':
|
|
178
172
|
stage: test
|
|
179
173
|
image: path/to/docker/jobs-testing-chrome:the-version
|
|
180
174
|
variables:
|
|
@@ -211,9 +205,6 @@ www 🧪 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
|
|
@@ -289,6 +280,7 @@ www 🧪 test:
|
|
|
289
280
|
- www/dist
|
|
290
281
|
exclude:
|
|
291
282
|
- www/.env
|
|
283
|
+
- www/.next/cache/**/*
|
|
292
284
|
expire_in: 1 day
|
|
293
285
|
when: always
|
|
294
286
|
reports: {}
|
|
@@ -477,17 +469,17 @@ www 🧪 test:
|
|
|
477
469
|
- when: on_success
|
|
478
470
|
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
479
471
|
needs:
|
|
480
|
-
- job: www 👮 lint
|
|
472
|
+
- job: 'www 👮 lint | dev '
|
|
481
473
|
artifacts: false
|
|
482
474
|
- job: 'www 🔨 app | dev '
|
|
483
475
|
artifacts: false
|
|
484
476
|
- job: 'www 🔨 docker | dev '
|
|
485
477
|
artifacts: false
|
|
486
|
-
- job: www 🧪 test
|
|
478
|
+
- job: 'www 🧪 test | dev '
|
|
487
479
|
artifacts: false
|
|
488
480
|
- job: 'www 🧾 sbom | dev '
|
|
489
481
|
artifacts: true
|
|
490
|
-
- job: www 🛡 audit
|
|
482
|
+
- job: 'www 🛡 audit | dev '
|
|
491
483
|
artifacts: false
|
|
492
484
|
retry: *a1
|
|
493
485
|
interruptible: true
|
|
@@ -526,6 +518,115 @@ www 🧪 test:
|
|
|
526
518
|
retry: *a1
|
|
527
519
|
interruptible: true
|
|
528
520
|
allow_failure: true
|
|
521
|
+
'www 🛡 audit | review ':
|
|
522
|
+
stage: test
|
|
523
|
+
image: path/to/docker/jobs-default:the-version
|
|
524
|
+
variables:
|
|
525
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
526
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
527
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
528
|
+
script:
|
|
529
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
530
|
+
- export APP_PATH="www"
|
|
531
|
+
- collapseable_section_end "injectvars"
|
|
532
|
+
- cd www
|
|
533
|
+
- yarn npm audit --environment production
|
|
534
|
+
rules:
|
|
535
|
+
- when: never
|
|
536
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
537
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
538
|
+
needs: []
|
|
539
|
+
retry: *a1
|
|
540
|
+
interruptible: true
|
|
541
|
+
allow_failure: true
|
|
542
|
+
'www 👮 lint | review ':
|
|
543
|
+
stage: test
|
|
544
|
+
image: path/to/docker/jobs-default:the-version
|
|
545
|
+
variables:
|
|
546
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
547
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
548
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
549
|
+
script:
|
|
550
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
551
|
+
- export APP_PATH="www"
|
|
552
|
+
- collapseable_section_end "injectvars"
|
|
553
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
554
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
555
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
556
|
+
- collapseable_section_end "nodeinstall"
|
|
557
|
+
- cd www
|
|
558
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
559
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
560
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
561
|
+
- collapseable_section_end "nodeinstall"
|
|
562
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
563
|
+
- yarn install --immutable
|
|
564
|
+
- collapseable_section_end "yarninstall"
|
|
565
|
+
- yarn lint
|
|
566
|
+
cache:
|
|
567
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
568
|
+
policy: pull-push
|
|
569
|
+
paths:
|
|
570
|
+
- www/.yarn
|
|
571
|
+
fallback_keys:
|
|
572
|
+
- www-yarn
|
|
573
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
574
|
+
policy: pull-push
|
|
575
|
+
paths:
|
|
576
|
+
- www/node_modules
|
|
577
|
+
fallback_keys:
|
|
578
|
+
- www-node-modules
|
|
579
|
+
rules:
|
|
580
|
+
- when: never
|
|
581
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
582
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
583
|
+
needs: []
|
|
584
|
+
retry: *a1
|
|
585
|
+
interruptible: true
|
|
586
|
+
'www 🧪 test | review ':
|
|
587
|
+
stage: test
|
|
588
|
+
image: path/to/docker/jobs-testing-chrome:the-version
|
|
589
|
+
variables:
|
|
590
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
591
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
592
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
593
|
+
script:
|
|
594
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
595
|
+
- export APP_PATH="www"
|
|
596
|
+
- collapseable_section_end "injectvars"
|
|
597
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
598
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
599
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
600
|
+
- collapseable_section_end "nodeinstall"
|
|
601
|
+
- cd www
|
|
602
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
603
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
604
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
605
|
+
- collapseable_section_end "nodeinstall"
|
|
606
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
607
|
+
- yarn install --immutable
|
|
608
|
+
- collapseable_section_end "yarninstall"
|
|
609
|
+
- yarn test
|
|
610
|
+
cache:
|
|
611
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
612
|
+
policy: pull-push
|
|
613
|
+
paths:
|
|
614
|
+
- www/.yarn
|
|
615
|
+
fallback_keys:
|
|
616
|
+
- www-yarn
|
|
617
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
618
|
+
policy: pull-push
|
|
619
|
+
paths:
|
|
620
|
+
- www/node_modules
|
|
621
|
+
fallback_keys:
|
|
622
|
+
- www-node-modules
|
|
623
|
+
rules:
|
|
624
|
+
- when: never
|
|
625
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
626
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
627
|
+
needs: []
|
|
628
|
+
retry: *a1
|
|
629
|
+
interruptible: true
|
|
529
630
|
'www 🔨 app | review ':
|
|
530
631
|
stage: build
|
|
531
632
|
image: my-custom-image
|
|
@@ -583,14 +684,18 @@ www 🧪 test:
|
|
|
583
684
|
- collapseable_section_end "yarninstall"
|
|
584
685
|
- yarn build
|
|
585
686
|
cache:
|
|
586
|
-
- key: www-yarn
|
|
687
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
587
688
|
policy: pull-push
|
|
588
689
|
paths:
|
|
589
690
|
- www/.yarn
|
|
590
|
-
|
|
691
|
+
fallback_keys:
|
|
692
|
+
- www-yarn
|
|
693
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
591
694
|
policy: pull-push
|
|
592
695
|
paths:
|
|
593
696
|
- www/node_modules
|
|
697
|
+
fallback_keys:
|
|
698
|
+
- www-node-modules
|
|
594
699
|
artifacts:
|
|
595
700
|
paths:
|
|
596
701
|
- www/__build_info.json
|
|
@@ -598,6 +703,7 @@ www 🧪 test:
|
|
|
598
703
|
- www/dist
|
|
599
704
|
exclude:
|
|
600
705
|
- www/.env
|
|
706
|
+
- www/.next/cache/**/*
|
|
601
707
|
expire_in: 1 day
|
|
602
708
|
when: always
|
|
603
709
|
reports: {}
|
|
@@ -656,10 +762,12 @@ www 🧪 test:
|
|
|
656
762
|
- docker push $DOCKER_CACHE_IMAGE
|
|
657
763
|
- collapseable_section_end "docker-push"
|
|
658
764
|
cache:
|
|
659
|
-
- key: www-yarn
|
|
765
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
660
766
|
policy: pull
|
|
661
767
|
paths:
|
|
662
768
|
- www/.yarn
|
|
769
|
+
fallback_keys:
|
|
770
|
+
- www-yarn
|
|
663
771
|
rules:
|
|
664
772
|
- when: never
|
|
665
773
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -789,17 +897,17 @@ www 🧪 test:
|
|
|
789
897
|
- when: on_success
|
|
790
898
|
if: $CI_MERGE_REQUEST_ID
|
|
791
899
|
needs:
|
|
792
|
-
- job: www 👮 lint
|
|
900
|
+
- job: 'www 👮 lint | review '
|
|
793
901
|
artifacts: false
|
|
794
902
|
- job: 'www 🔨 app | review '
|
|
795
903
|
artifacts: false
|
|
796
904
|
- job: 'www 🔨 docker | review '
|
|
797
905
|
artifacts: false
|
|
798
|
-
- job: www 🧪 test
|
|
906
|
+
- job: 'www 🧪 test | review '
|
|
799
907
|
artifacts: false
|
|
800
908
|
- job: 'www 🧾 sbom | review '
|
|
801
909
|
artifacts: true
|
|
802
|
-
- job: www 🛡 audit
|
|
910
|
+
- job: 'www 🛡 audit | review '
|
|
803
911
|
artifacts: false
|
|
804
912
|
retry: *a1
|
|
805
913
|
interruptible: true
|
|
@@ -913,6 +1021,7 @@ www 🧪 test:
|
|
|
913
1021
|
- www/dist
|
|
914
1022
|
exclude:
|
|
915
1023
|
- www/.env
|
|
1024
|
+
- www/.next/cache/**/*
|
|
916
1025
|
expire_in: 1 day
|
|
917
1026
|
when: always
|
|
918
1027
|
reports: {}
|
|
@@ -1215,6 +1324,7 @@ www 🧪 test:
|
|
|
1215
1324
|
- www/dist
|
|
1216
1325
|
exclude:
|
|
1217
1326
|
- www/.env
|
|
1327
|
+
- www/.next/cache/**/*
|
|
1218
1328
|
expire_in: 1 day
|
|
1219
1329
|
when: always
|
|
1220
1330
|
reports: {}
|
|
@@ -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
|
-
www 🛡 audit:
|
|
106
|
+
'www 🛡 audit | dev ':
|
|
107
107
|
stage: test
|
|
108
108
|
image: path/to/docker/jobs-default:the-version
|
|
109
109
|
variables:
|
|
@@ -120,9 +120,6 @@ www 🛡 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 @@ www 🛡 audit:
|
|
|
131
128
|
- stuck_or_timeout_failure
|
|
132
129
|
interruptible: true
|
|
133
130
|
allow_failure: true
|
|
134
|
-
www 👮 lint:
|
|
131
|
+
'www 👮 lint | dev ':
|
|
135
132
|
stage: test
|
|
136
133
|
image: path/to/docker/jobs-default:the-version
|
|
137
134
|
variables:
|
|
@@ -168,13 +165,10 @@ www 👮 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
|
-
www 🧪 test:
|
|
171
|
+
'www 🧪 test | dev ':
|
|
178
172
|
stage: test
|
|
179
173
|
image: path/to/docker/jobs-testing-chrome:the-version
|
|
180
174
|
variables:
|
|
@@ -211,9 +205,6 @@ www 🧪 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
|
|
@@ -289,6 +280,7 @@ www 🧪 test:
|
|
|
289
280
|
- www/dist
|
|
290
281
|
exclude:
|
|
291
282
|
- www/.env
|
|
283
|
+
- www/.next/cache/**/*
|
|
292
284
|
expire_in: 1 day
|
|
293
285
|
when: always
|
|
294
286
|
reports: {}
|
|
@@ -479,17 +471,17 @@ www 🧪 test:
|
|
|
479
471
|
- when: on_success
|
|
480
472
|
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
481
473
|
needs:
|
|
482
|
-
- job: www 👮 lint
|
|
474
|
+
- job: 'www 👮 lint | dev '
|
|
483
475
|
artifacts: false
|
|
484
476
|
- job: 'www 🔨 app | dev '
|
|
485
477
|
artifacts: false
|
|
486
478
|
- job: 'www 🔨 docker | dev '
|
|
487
479
|
artifacts: false
|
|
488
|
-
- job: www 🧪 test
|
|
480
|
+
- job: 'www 🧪 test | dev '
|
|
489
481
|
artifacts: false
|
|
490
482
|
- job: 'www 🧾 sbom | dev '
|
|
491
483
|
artifacts: true
|
|
492
|
-
- job: www 🛡 audit
|
|
484
|
+
- job: 'www 🛡 audit | dev '
|
|
493
485
|
artifacts: false
|
|
494
486
|
retry: *a1
|
|
495
487
|
interruptible: true
|
|
@@ -528,6 +520,115 @@ www 🧪 test:
|
|
|
528
520
|
retry: *a1
|
|
529
521
|
interruptible: true
|
|
530
522
|
allow_failure: true
|
|
523
|
+
'www 🛡 audit | review ':
|
|
524
|
+
stage: test
|
|
525
|
+
image: path/to/docker/jobs-default:the-version
|
|
526
|
+
variables:
|
|
527
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
528
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
529
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
530
|
+
script:
|
|
531
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
532
|
+
- export APP_PATH="www"
|
|
533
|
+
- collapseable_section_end "injectvars"
|
|
534
|
+
- cd www
|
|
535
|
+
- yarn npm audit --environment production
|
|
536
|
+
rules:
|
|
537
|
+
- when: never
|
|
538
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
539
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
540
|
+
needs: []
|
|
541
|
+
retry: *a1
|
|
542
|
+
interruptible: true
|
|
543
|
+
allow_failure: true
|
|
544
|
+
'www 👮 lint | review ':
|
|
545
|
+
stage: test
|
|
546
|
+
image: path/to/docker/jobs-default:the-version
|
|
547
|
+
variables:
|
|
548
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
549
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
550
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
551
|
+
script:
|
|
552
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
553
|
+
- export APP_PATH="www"
|
|
554
|
+
- collapseable_section_end "injectvars"
|
|
555
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
556
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
557
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
558
|
+
- collapseable_section_end "nodeinstall"
|
|
559
|
+
- cd www
|
|
560
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
561
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
562
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
563
|
+
- collapseable_section_end "nodeinstall"
|
|
564
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
565
|
+
- yarn install --immutable
|
|
566
|
+
- collapseable_section_end "yarninstall"
|
|
567
|
+
- yarn lint
|
|
568
|
+
cache:
|
|
569
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
570
|
+
policy: pull-push
|
|
571
|
+
paths:
|
|
572
|
+
- www/.yarn
|
|
573
|
+
fallback_keys:
|
|
574
|
+
- www-yarn
|
|
575
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
576
|
+
policy: pull-push
|
|
577
|
+
paths:
|
|
578
|
+
- www/node_modules
|
|
579
|
+
fallback_keys:
|
|
580
|
+
- www-node-modules
|
|
581
|
+
rules:
|
|
582
|
+
- when: never
|
|
583
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
584
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
585
|
+
needs: []
|
|
586
|
+
retry: *a1
|
|
587
|
+
interruptible: true
|
|
588
|
+
'www 🧪 test | review ':
|
|
589
|
+
stage: test
|
|
590
|
+
image: path/to/docker/jobs-testing-chrome:the-version
|
|
591
|
+
variables:
|
|
592
|
+
KUBERNETES_CPU_REQUEST: '0.45'
|
|
593
|
+
KUBERNETES_MEMORY_REQUEST: 1Gi
|
|
594
|
+
KUBERNETES_MEMORY_LIMIT: 4Gi
|
|
595
|
+
script:
|
|
596
|
+
- collapseable_section_start "injectvars" "Injecting variables"
|
|
597
|
+
- export APP_PATH="www"
|
|
598
|
+
- collapseable_section_end "injectvars"
|
|
599
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
600
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
601
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
602
|
+
- collapseable_section_end "nodeinstall"
|
|
603
|
+
- cd www
|
|
604
|
+
- collapseable_section_start "nodeinstall" "Ensure node version"
|
|
605
|
+
- if [ -f ~/.nvm/nvm.sh ]; then source ~/.nvm/nvm.sh; fi
|
|
606
|
+
- if command -v nvm &> /dev/null && [ -f ./.nvmrc ]; then nvm install; fi
|
|
607
|
+
- collapseable_section_end "nodeinstall"
|
|
608
|
+
- collapseable_section_start "yarninstall" "Yarn install"
|
|
609
|
+
- yarn install --immutable
|
|
610
|
+
- collapseable_section_end "yarninstall"
|
|
611
|
+
- yarn test
|
|
612
|
+
cache:
|
|
613
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
614
|
+
policy: pull-push
|
|
615
|
+
paths:
|
|
616
|
+
- www/.yarn
|
|
617
|
+
fallback_keys:
|
|
618
|
+
- www-yarn
|
|
619
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
620
|
+
policy: pull-push
|
|
621
|
+
paths:
|
|
622
|
+
- www/node_modules
|
|
623
|
+
fallback_keys:
|
|
624
|
+
- www-node-modules
|
|
625
|
+
rules:
|
|
626
|
+
- when: never
|
|
627
|
+
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
628
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
629
|
+
needs: []
|
|
630
|
+
retry: *a1
|
|
631
|
+
interruptible: true
|
|
531
632
|
'www 🔨 app | review ':
|
|
532
633
|
stage: build
|
|
533
634
|
image: path/to/docker/jobs-default:the-version
|
|
@@ -585,14 +686,18 @@ www 🧪 test:
|
|
|
585
686
|
- collapseable_section_end "yarninstall"
|
|
586
687
|
- yarn build
|
|
587
688
|
cache:
|
|
588
|
-
- key: www-yarn
|
|
689
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
589
690
|
policy: pull-push
|
|
590
691
|
paths:
|
|
591
692
|
- www/.yarn
|
|
592
|
-
|
|
693
|
+
fallback_keys:
|
|
694
|
+
- www-yarn
|
|
695
|
+
- key: www-node-modules-mr$CI_MERGE_REQUEST_IID
|
|
593
696
|
policy: pull-push
|
|
594
697
|
paths:
|
|
595
698
|
- www/node_modules
|
|
699
|
+
fallback_keys:
|
|
700
|
+
- www-node-modules
|
|
596
701
|
artifacts:
|
|
597
702
|
paths:
|
|
598
703
|
- www/__build_info.json
|
|
@@ -600,6 +705,7 @@ www 🧪 test:
|
|
|
600
705
|
- www/dist
|
|
601
706
|
exclude:
|
|
602
707
|
- www/.env
|
|
708
|
+
- www/.next/cache/**/*
|
|
603
709
|
expire_in: 1 day
|
|
604
710
|
when: always
|
|
605
711
|
reports: {}
|
|
@@ -660,10 +766,12 @@ www 🧪 test:
|
|
|
660
766
|
- docker push $DOCKER_CACHE_IMAGE
|
|
661
767
|
- collapseable_section_end "docker-push"
|
|
662
768
|
cache:
|
|
663
|
-
- key: www-yarn
|
|
769
|
+
- key: www-yarn-mr$CI_MERGE_REQUEST_IID
|
|
664
770
|
policy: pull
|
|
665
771
|
paths:
|
|
666
772
|
- www/.yarn
|
|
773
|
+
fallback_keys:
|
|
774
|
+
- www-yarn
|
|
667
775
|
rules:
|
|
668
776
|
- when: never
|
|
669
777
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -793,17 +901,17 @@ www 🧪 test:
|
|
|
793
901
|
- when: on_success
|
|
794
902
|
if: $CI_MERGE_REQUEST_ID
|
|
795
903
|
needs:
|
|
796
|
-
- job: www 👮 lint
|
|
904
|
+
- job: 'www 👮 lint | review '
|
|
797
905
|
artifacts: false
|
|
798
906
|
- job: 'www 🔨 app | review '
|
|
799
907
|
artifacts: false
|
|
800
908
|
- job: 'www 🔨 docker | review '
|
|
801
909
|
artifacts: false
|
|
802
|
-
- job: www 🧪 test
|
|
910
|
+
- job: 'www 🧪 test | review '
|
|
803
911
|
artifacts: false
|
|
804
912
|
- job: 'www 🧾 sbom | review '
|
|
805
913
|
artifacts: true
|
|
806
|
-
- job: www 🛡 audit
|
|
914
|
+
- job: 'www 🛡 audit | review '
|
|
807
915
|
artifacts: false
|
|
808
916
|
retry: *a1
|
|
809
917
|
interruptible: true
|
|
@@ -917,6 +1025,7 @@ www 🧪 test:
|
|
|
917
1025
|
- www/dist
|
|
918
1026
|
exclude:
|
|
919
1027
|
- www/.env
|
|
1028
|
+
- www/.next/cache/**/*
|
|
920
1029
|
expire_in: 1 day
|
|
921
1030
|
when: always
|
|
922
1031
|
reports: {}
|
|
@@ -1221,6 +1330,7 @@ www 🧪 test:
|
|
|
1221
1330
|
- www/dist
|
|
1222
1331
|
exclude:
|
|
1223
1332
|
- www/.env
|
|
1333
|
+
- www/.next/cache/**/*
|
|
1224
1334
|
expire_in: 1 day
|
|
1225
1335
|
when: always
|
|
1226
1336
|
reports: {}
|