@catladder/cli 0.0.0-main-fae18d69 → 0.0.0-main-a6c4d953

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.
@@ -1779,7 +1779,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
1779
1779
  KUBERNETES_MEMORY_LIMIT: "4Gi",
1780
1780
  };
1781
1781
  const createCustomTestJobs = (context) => {
1782
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1782
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
1783
1783
  // don't run tests after release
1784
1784
  // TODO: this will be replaced by using rules
1785
1785
  if (context.trigger === "taggedRelease") {
@@ -1810,8 +1810,8 @@ const createCustomTestJobs = (context) => {
1810
1810
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
1811
1811
  cache: undefined,
1812
1812
  script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
1813
- allow_failure: true,
1814
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifactsReports, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifacts),
1813
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
1814
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
1815
1815
  }
1816
1816
  : null;
1817
1817
  const lintJob = buildConfig.lint
@@ -1820,11 +1820,12 @@ const createCustomTestJobs = (context) => {
1820
1820
  ...base,
1821
1821
  runnerVariables: {
1822
1822
  ...RUNNER_CUSTOM_TEST_VARIABLES,
1823
- ...((_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.runnerVariables) !== null && _j !== void 0 ? _j : {}),
1823
+ ...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
1824
1824
  },
1825
- image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : buildConfig.jobImage,
1826
- script: [...(0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)],
1827
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts),
1825
+ image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
1826
+ script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
1827
+ allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
1828
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
1828
1829
  }
1829
1830
  : null;
1830
1831
  const testJob = buildConfig.test
@@ -1833,11 +1834,12 @@ const createCustomTestJobs = (context) => {
1833
1834
  ...base,
1834
1835
  runnerVariables: {
1835
1836
  ...RUNNER_CUSTOM_TEST_VARIABLES,
1836
- ...((_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.runnerVariables) !== null && _r !== void 0 ? _r : {}),
1837
+ ...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
1837
1838
  },
1838
- image: (_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.jobImage) !== null && _t !== void 0 ? _t : buildConfig.jobImage,
1839
- script: [...(0, utils_1.ensureArray)((_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.command)],
1840
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts),
1839
+ image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
1840
+ script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
1841
+ allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
1842
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
1841
1843
  }
1842
1844
  : null;
1843
1845
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -2376,7 +2378,7 @@ const constants_1 = __nccwpck_require__(5497);
2376
2378
  const yarn_1 = __nccwpck_require__(8897);
2377
2379
  const createJobCache_1 = __nccwpck_require__(5644);
2378
2380
  const createNodeTestJobs = (context) => {
2379
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
2381
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
2380
2382
  // don't run tests after release
2381
2383
  // TODO: this will be replaced by using rules
2382
2384
  if (context.trigger === "taggedRelease") {
@@ -2416,12 +2418,12 @@ const createNodeTestJobs = (context) => {
2416
2418
  `cd ${context.build.dir}`,
2417
2419
  ...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
2418
2420
  context.packageManagerInfo.isClassic
2419
- ? "yarn audit"
2420
- : "yarn npm audit --environment production", // yarn 2
2421
+ ? "yarn audit --level critical"
2422
+ : "yarn npm audit --environment production --level critical", // yarn 2
2421
2423
  ]),
2422
2424
  ],
2423
- allow_failure: true,
2424
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts),
2425
+ allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
2426
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
2425
2427
  }
2426
2428
  : null;
2427
2429
  const lintJob = buildConfig.lint !== false
@@ -2430,17 +2432,18 @@ const createNodeTestJobs = (context) => {
2430
2432
  ...base,
2431
2433
  runnerVariables: {
2432
2434
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
2433
- ...((_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.runnerVariables) !== null && _k !== void 0 ? _k : {}),
2435
+ ...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
2434
2436
  },
2435
- image: (_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : defaultImage,
2437
+ image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
2436
2438
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
2437
2439
  script: [
2438
2440
  ...(0, yarn_1.ensureNodeVersion)(context),
2439
2441
  `cd ${context.build.dir}`,
2440
2442
  ...yarnInstall,
2441
- ...((_p = (0, utils_1.ensureArrayOrNull)((_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : ["yarn lint"]),
2443
+ ...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
2442
2444
  ],
2443
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifactsReports, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifacts),
2445
+ allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
2446
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
2444
2447
  }
2445
2448
  : null;
2446
2449
  const testJob = buildConfig.test !== false
@@ -2449,17 +2452,18 @@ const createNodeTestJobs = (context) => {
2449
2452
  ...base,
2450
2453
  runnerVariables: {
2451
2454
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
2452
- ...((_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.runnerVariables) !== null && _t !== void 0 ? _t : {}),
2455
+ ...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
2453
2456
  },
2454
- image: (_v = (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.jobImage) !== null && _v !== void 0 ? _v : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
2457
+ image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
2455
2458
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
2456
2459
  script: [
2457
2460
  ...(0, yarn_1.ensureNodeVersion)(context),
2458
2461
  `cd ${context.build.dir}`,
2459
2462
  ...yarnInstall,
2460
- ...((_x = (0, utils_1.ensureArrayOrNull)((_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.command)) !== null && _x !== void 0 ? _x : ["yarn test"]),
2463
+ ...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
2461
2464
  ],
2462
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.artifactsReports, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifacts),
2465
+ allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
2466
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
2463
2467
  }
2464
2468
  : null;
2465
2469
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -2636,7 +2640,7 @@ exports.createRailsTestJobs = void 0;
2636
2640
  const __1 = __nccwpck_require__(241);
2637
2641
  const utils_1 = __nccwpck_require__(595);
2638
2642
  const createRailsTestJobs = (context) => {
2639
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
2643
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
2640
2644
  // don't run tests after release
2641
2645
  // TODO: this will be replaced by using rules
2642
2646
  if (context.trigger === "taggedRelease") {
@@ -2680,7 +2684,7 @@ const createRailsTestJobs = (context) => {
2680
2684
  "bundle audit check",
2681
2685
  ]),
2682
2686
  ],
2683
- allow_failure: true,
2687
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
2684
2688
  }
2685
2689
  : null;
2686
2690
  const lintJob = buildConfig.lint !== false
@@ -2688,14 +2692,15 @@ const createRailsTestJobs = (context) => {
2688
2692
  name: "👮 lint",
2689
2693
  ...base,
2690
2694
  cache: bundlerCache,
2691
- image: (_h = (_g = (_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.jobImage) !== null && _g !== void 0 ? _g : buildConfig.jobImage) !== null && _h !== void 0 ? _h : defaultImage,
2695
+ image: (_k = (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage) !== null && _k !== void 0 ? _k : defaultImage,
2692
2696
  script: [
2693
2697
  `cd ${context.build.dir}`,
2694
2698
  ...bundlerInstall,
2695
- ...((_k = (0, utils_1.ensureArrayOrNull)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : [
2699
+ ...((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : [
2696
2700
  "bundle exec rubocop",
2697
2701
  ]),
2698
2702
  ],
2703
+ allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure,
2699
2704
  }
2700
2705
  : null;
2701
2706
  const testJob = buildConfig.test !== false
@@ -2703,16 +2708,17 @@ const createRailsTestJobs = (context) => {
2703
2708
  name: "🧪 test",
2704
2709
  ...base,
2705
2710
  cache: bundlerCache,
2706
- image: (_o = (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage) !== null && _o !== void 0 ? _o : defaultImage,
2711
+ image: (_r = (_q = (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.jobImage) !== null && _q !== void 0 ? _q : buildConfig.jobImage) !== null && _r !== void 0 ? _r : defaultImage,
2707
2712
  script: [
2708
2713
  `cd ${context.build.dir}`,
2709
2714
  ...bundlerInstall,
2710
- ...((_q = (0, utils_1.ensureArrayOrNull)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : [
2715
+ ...((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : [
2711
2716
  "bundle exec rake db:test:prepare",
2712
2717
  "bundle exec rake assets:precompile assets:clean",
2713
2718
  "bundle exec rspec",
2714
2719
  ]),
2715
2720
  ],
2721
+ allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
2716
2722
  runnerVariables: {
2717
2723
  RAILS_ENV: "test",
2718
2724
  DATABASE_URL: "postgresql://postgres@database",
@@ -2720,7 +2726,7 @@ const createRailsTestJobs = (context) => {
2720
2726
  services: [
2721
2727
  {
2722
2728
  name: buildConfig.test && "databaseImage" in buildConfig.test
2723
- ? ((_s = (_r = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _r === void 0 ? void 0 : _r.databaseImage) !== null && _s !== void 0 ? _s : "docker.io/postgres:latest")
2729
+ ? ((_w = (_v = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _v === void 0 ? void 0 : _v.databaseImage) !== null && _w !== void 0 ? _w : "docker.io/postgres:latest")
2724
2730
  : "docker.io/postgres:latest",
2725
2731
  alias: "database",
2726
2732
  variables: {
@@ -4337,7 +4343,7 @@ const common_1 = __nccwpck_require__(4884);
4337
4343
  const getOnDeployExecuteScript = (context, when) => {
4338
4344
  const executes = getExecutes(context);
4339
4345
  return executes
4340
- .filter(({ config }) => config.when === when)
4346
+ .filter((config) => config.when === when)
4341
4347
  .flatMap((execute) => {
4342
4348
  return getJobRunScriptForExecute(context, execute);
4343
4349
  });
@@ -4353,12 +4359,7 @@ const getExecutes = (context) => {
4353
4359
  if (!value) {
4354
4360
  return [];
4355
4361
  }
4356
- return [
4357
- {
4358
- jobName: key,
4359
- config: value,
4360
- },
4361
- ];
4362
+ return [value];
4362
4363
  }),
4363
4364
  ];
4364
4365
  };
@@ -4371,22 +4372,19 @@ const getLegacyExecutes = (context) => {
4371
4372
  }
4372
4373
  return [
4373
4374
  {
4374
- jobName,
4375
- config: {
4376
- job: jobName,
4377
- type: "job",
4378
- when: job.when,
4379
- ...(job.when === "preDeploy" || job.when === "postDeploy"
4380
- ? {
4381
- waitForCompletion: job.waitForCompletion,
4382
- }
4383
- : {}),
4384
- },
4375
+ job: jobName,
4376
+ type: "job",
4377
+ when: job.when,
4378
+ ...(job.when === "preDeploy" || job.when === "postDeploy"
4379
+ ? {
4380
+ waitForCompletion: job.waitForCompletion,
4381
+ }
4382
+ : {}),
4385
4383
  },
4386
4384
  ];
4387
4385
  });
4388
4386
  };
4389
- const getJobRunScriptForExecute = (context, { jobName, config }) => {
4387
+ const getJobRunScriptForExecute = (context, config) => {
4390
4388
  var _a;
4391
4389
  const type = config.type;
4392
4390
  if (type === "script") {
@@ -4406,7 +4404,7 @@ const getJobRunScriptForExecute = (context, { jobName, config }) => {
4406
4404
  wait: waitForCompletion === true ? true : undefined,
4407
4405
  args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(config.args),
4408
4406
  });
4409
- const fullJobName = (0, jobName_1.getFullJobName)(context, jobName);
4407
+ const fullJobName = (0, jobName_1.getFullJobName)(context, config.job);
4410
4408
  return [
4411
4409
  `${(0, common_1.gcloudRunCmd)()} jobs execute ${fullJobName.toString()} ${argString}`,
4412
4410
  ];
@@ -5045,7 +5045,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
5045
5045
  KUBERNETES_MEMORY_LIMIT: "4Gi",
5046
5046
  };
5047
5047
  const createCustomTestJobs = (context) => {
5048
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
5048
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
5049
5049
  // don't run tests after release
5050
5050
  // TODO: this will be replaced by using rules
5051
5051
  if (context.trigger === "taggedRelease") {
@@ -5076,8 +5076,8 @@ const createCustomTestJobs = (context) => {
5076
5076
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
5077
5077
  cache: undefined,
5078
5078
  script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
5079
- allow_failure: true,
5080
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifactsReports, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifacts),
5079
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
5080
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
5081
5081
  }
5082
5082
  : null;
5083
5083
  const lintJob = buildConfig.lint
@@ -5086,11 +5086,12 @@ const createCustomTestJobs = (context) => {
5086
5086
  ...base,
5087
5087
  runnerVariables: {
5088
5088
  ...RUNNER_CUSTOM_TEST_VARIABLES,
5089
- ...((_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.runnerVariables) !== null && _j !== void 0 ? _j : {}),
5089
+ ...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
5090
5090
  },
5091
- image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : buildConfig.jobImage,
5092
- script: [...(0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)],
5093
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts),
5091
+ image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
5092
+ script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
5093
+ allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
5094
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
5094
5095
  }
5095
5096
  : null;
5096
5097
  const testJob = buildConfig.test
@@ -5099,11 +5100,12 @@ const createCustomTestJobs = (context) => {
5099
5100
  ...base,
5100
5101
  runnerVariables: {
5101
5102
  ...RUNNER_CUSTOM_TEST_VARIABLES,
5102
- ...((_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.runnerVariables) !== null && _r !== void 0 ? _r : {}),
5103
+ ...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
5103
5104
  },
5104
- image: (_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.jobImage) !== null && _t !== void 0 ? _t : buildConfig.jobImage,
5105
- script: [...(0, utils_1.ensureArray)((_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.command)],
5106
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts),
5105
+ image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
5106
+ script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
5107
+ allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
5108
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
5107
5109
  }
5108
5110
  : null;
5109
5111
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -5642,7 +5644,7 @@ const constants_1 = __nccwpck_require__(37878);
5642
5644
  const yarn_1 = __nccwpck_require__(78897);
5643
5645
  const createJobCache_1 = __nccwpck_require__(65644);
5644
5646
  const createNodeTestJobs = (context) => {
5645
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
5647
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
5646
5648
  // don't run tests after release
5647
5649
  // TODO: this will be replaced by using rules
5648
5650
  if (context.trigger === "taggedRelease") {
@@ -5682,12 +5684,12 @@ const createNodeTestJobs = (context) => {
5682
5684
  `cd ${context.build.dir}`,
5683
5685
  ...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
5684
5686
  context.packageManagerInfo.isClassic
5685
- ? "yarn audit"
5686
- : "yarn npm audit --environment production", // yarn 2
5687
+ ? "yarn audit --level critical"
5688
+ : "yarn npm audit --environment production --level critical", // yarn 2
5687
5689
  ]),
5688
5690
  ],
5689
- allow_failure: true,
5690
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts),
5691
+ allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
5692
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
5691
5693
  }
5692
5694
  : null;
5693
5695
  const lintJob = buildConfig.lint !== false
@@ -5696,17 +5698,18 @@ const createNodeTestJobs = (context) => {
5696
5698
  ...base,
5697
5699
  runnerVariables: {
5698
5700
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
5699
- ...((_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.runnerVariables) !== null && _k !== void 0 ? _k : {}),
5701
+ ...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
5700
5702
  },
5701
- image: (_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : defaultImage,
5703
+ image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
5702
5704
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
5703
5705
  script: [
5704
5706
  ...(0, yarn_1.ensureNodeVersion)(context),
5705
5707
  `cd ${context.build.dir}`,
5706
5708
  ...yarnInstall,
5707
- ...((_p = (0, utils_1.ensureArrayOrNull)((_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : ["yarn lint"]),
5709
+ ...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
5708
5710
  ],
5709
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifactsReports, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifacts),
5711
+ allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
5712
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
5710
5713
  }
5711
5714
  : null;
5712
5715
  const testJob = buildConfig.test !== false
@@ -5715,17 +5718,18 @@ const createNodeTestJobs = (context) => {
5715
5718
  ...base,
5716
5719
  runnerVariables: {
5717
5720
  ...constants_1.NODE_RUNNER_BUILD_VARIABLES,
5718
- ...((_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.runnerVariables) !== null && _t !== void 0 ? _t : {}),
5721
+ ...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
5719
5722
  },
5720
- image: (_v = (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.jobImage) !== null && _v !== void 0 ? _v : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
5723
+ image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
5721
5724
  cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
5722
5725
  script: [
5723
5726
  ...(0, yarn_1.ensureNodeVersion)(context),
5724
5727
  `cd ${context.build.dir}`,
5725
5728
  ...yarnInstall,
5726
- ...((_x = (0, utils_1.ensureArrayOrNull)((_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.command)) !== null && _x !== void 0 ? _x : ["yarn test"]),
5729
+ ...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
5727
5730
  ],
5728
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.artifactsReports, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifacts),
5731
+ allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
5732
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
5729
5733
  }
5730
5734
  : null;
5731
5735
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -5902,7 +5906,7 @@ exports.createRailsTestJobs = void 0;
5902
5906
  const __1 = __nccwpck_require__(60241);
5903
5907
  const utils_1 = __nccwpck_require__(20595);
5904
5908
  const createRailsTestJobs = (context) => {
5905
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
5909
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
5906
5910
  // don't run tests after release
5907
5911
  // TODO: this will be replaced by using rules
5908
5912
  if (context.trigger === "taggedRelease") {
@@ -5946,7 +5950,7 @@ const createRailsTestJobs = (context) => {
5946
5950
  "bundle audit check",
5947
5951
  ]),
5948
5952
  ],
5949
- allow_failure: true,
5953
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
5950
5954
  }
5951
5955
  : null;
5952
5956
  const lintJob = buildConfig.lint !== false
@@ -5954,14 +5958,15 @@ const createRailsTestJobs = (context) => {
5954
5958
  name: "👮 lint",
5955
5959
  ...base,
5956
5960
  cache: bundlerCache,
5957
- image: (_h = (_g = (_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.jobImage) !== null && _g !== void 0 ? _g : buildConfig.jobImage) !== null && _h !== void 0 ? _h : defaultImage,
5961
+ image: (_k = (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage) !== null && _k !== void 0 ? _k : defaultImage,
5958
5962
  script: [
5959
5963
  `cd ${context.build.dir}`,
5960
5964
  ...bundlerInstall,
5961
- ...((_k = (0, utils_1.ensureArrayOrNull)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : [
5965
+ ...((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : [
5962
5966
  "bundle exec rubocop",
5963
5967
  ]),
5964
5968
  ],
5969
+ allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure,
5965
5970
  }
5966
5971
  : null;
5967
5972
  const testJob = buildConfig.test !== false
@@ -5969,16 +5974,17 @@ const createRailsTestJobs = (context) => {
5969
5974
  name: "🧪 test",
5970
5975
  ...base,
5971
5976
  cache: bundlerCache,
5972
- image: (_o = (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage) !== null && _o !== void 0 ? _o : defaultImage,
5977
+ image: (_r = (_q = (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.jobImage) !== null && _q !== void 0 ? _q : buildConfig.jobImage) !== null && _r !== void 0 ? _r : defaultImage,
5973
5978
  script: [
5974
5979
  `cd ${context.build.dir}`,
5975
5980
  ...bundlerInstall,
5976
- ...((_q = (0, utils_1.ensureArrayOrNull)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : [
5981
+ ...((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : [
5977
5982
  "bundle exec rake db:test:prepare",
5978
5983
  "bundle exec rake assets:precompile assets:clean",
5979
5984
  "bundle exec rspec",
5980
5985
  ]),
5981
5986
  ],
5987
+ allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
5982
5988
  runnerVariables: {
5983
5989
  RAILS_ENV: "test",
5984
5990
  DATABASE_URL: "postgresql://postgres@database",
@@ -5986,7 +5992,7 @@ const createRailsTestJobs = (context) => {
5986
5992
  services: [
5987
5993
  {
5988
5994
  name: buildConfig.test && "databaseImage" in buildConfig.test
5989
- ? ((_s = (_r = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _r === void 0 ? void 0 : _r.databaseImage) !== null && _s !== void 0 ? _s : "docker.io/postgres:latest")
5995
+ ? ((_w = (_v = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _v === void 0 ? void 0 : _v.databaseImage) !== null && _w !== void 0 ? _w : "docker.io/postgres:latest")
5990
5996
  : "docker.io/postgres:latest",
5991
5997
  alias: "database",
5992
5998
  variables: {
@@ -7603,7 +7609,7 @@ const common_1 = __nccwpck_require__(54884);
7603
7609
  const getOnDeployExecuteScript = (context, when) => {
7604
7610
  const executes = getExecutes(context);
7605
7611
  return executes
7606
- .filter(({ config }) => config.when === when)
7612
+ .filter((config) => config.when === when)
7607
7613
  .flatMap((execute) => {
7608
7614
  return getJobRunScriptForExecute(context, execute);
7609
7615
  });
@@ -7619,12 +7625,7 @@ const getExecutes = (context) => {
7619
7625
  if (!value) {
7620
7626
  return [];
7621
7627
  }
7622
- return [
7623
- {
7624
- jobName: key,
7625
- config: value,
7626
- },
7627
- ];
7628
+ return [value];
7628
7629
  }),
7629
7630
  ];
7630
7631
  };
@@ -7637,22 +7638,19 @@ const getLegacyExecutes = (context) => {
7637
7638
  }
7638
7639
  return [
7639
7640
  {
7640
- jobName,
7641
- config: {
7642
- job: jobName,
7643
- type: "job",
7644
- when: job.when,
7645
- ...(job.when === "preDeploy" || job.when === "postDeploy"
7646
- ? {
7647
- waitForCompletion: job.waitForCompletion,
7648
- }
7649
- : {}),
7650
- },
7641
+ job: jobName,
7642
+ type: "job",
7643
+ when: job.when,
7644
+ ...(job.when === "preDeploy" || job.when === "postDeploy"
7645
+ ? {
7646
+ waitForCompletion: job.waitForCompletion,
7647
+ }
7648
+ : {}),
7651
7649
  },
7652
7650
  ];
7653
7651
  });
7654
7652
  };
7655
- const getJobRunScriptForExecute = (context, { jobName, config }) => {
7653
+ const getJobRunScriptForExecute = (context, config) => {
7656
7654
  var _a;
7657
7655
  const type = config.type;
7658
7656
  if (type === "script") {
@@ -7672,7 +7670,7 @@ const getJobRunScriptForExecute = (context, { jobName, config }) => {
7672
7670
  wait: waitForCompletion === true ? true : undefined,
7673
7671
  args: (0, getJobOrServiceArgs_1.getCloudRunServiceOrJobArgsArg)(config.args),
7674
7672
  });
7675
- const fullJobName = (0, jobName_1.getFullJobName)(context, jobName);
7673
+ const fullJobName = (0, jobName_1.getFullJobName)(context, config.job);
7676
7674
  return [
7677
7675
  `${(0, common_1.gcloudRunCmd)()} jobs execute ${fullJobName.toString()} ${argString}`,
7678
7676
  ];
@@ -11,7 +11,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
11
11
  KUBERNETES_MEMORY_LIMIT: "4Gi",
12
12
  };
13
13
  const createCustomTestJobs = (context) => {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
15
15
  // don't run tests after release
16
16
  // TODO: this will be replaced by using rules
17
17
  if (context.trigger === "taggedRelease") {
@@ -42,8 +42,8 @@ const createCustomTestJobs = (context) => {
42
42
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
43
43
  cache: undefined,
44
44
  script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
45
- allow_failure: true,
46
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.artifactsReports, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifacts),
45
+ allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
46
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
47
47
  }
48
48
  : null;
49
49
  const lintJob = buildConfig.lint
@@ -52,11 +52,12 @@ const createCustomTestJobs = (context) => {
52
52
  ...base,
53
53
  runnerVariables: {
54
54
  ...RUNNER_CUSTOM_TEST_VARIABLES,
55
- ...((_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.runnerVariables) !== null && _j !== void 0 ? _j : {}),
55
+ ...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
56
56
  },
57
- image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : buildConfig.jobImage,
58
- script: [...(0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)],
59
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts),
57
+ image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
58
+ script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
59
+ allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
60
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
60
61
  }
61
62
  : null;
62
63
  const testJob = buildConfig.test
@@ -65,11 +66,12 @@ const createCustomTestJobs = (context) => {
65
66
  ...base,
66
67
  runnerVariables: {
67
68
  ...RUNNER_CUSTOM_TEST_VARIABLES,
68
- ...((_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.runnerVariables) !== null && _r !== void 0 ? _r : {}),
69
+ ...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
69
70
  },
70
- image: (_t = (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.jobImage) !== null && _t !== void 0 ? _t : buildConfig.jobImage,
71
- script: [...(0, utils_1.ensureArray)((_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.command)],
72
- ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts),
71
+ image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
72
+ script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
73
+ allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
74
+ ...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
73
75
  }
74
76
  : null;
75
77
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
@@ -1 +1 @@
1
- {"version":3,"file":"testJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/custom/testJob.ts"],"names":[],"mappings":";;;AAGA,uCAAkD;AAClD,yEAAsE;AACtE,4DAAmE;AACnE,oCAAyC;AAEzC,MAAM,4BAA4B,GAAG;IACnC,sBAAsB,EAAE,MAAM;IAC9B,yBAAyB,EAAE,KAAK;IAChC,uBAAuB,EAAE,KAAK;CAC/B,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,OAAkC,EAClB,EAAE;;IAClB,gCAAgC;IAChC,6CAA6C;IAC7C,IAAI,OAAO,CAAC,OAAO,KAAK,eAAe,EAAE,CAAC;QACxC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IAEzC,IAAI,CAAC,IAAA,qBAAa,EAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,GAA0C;QAClD,SAAS,EAAE;YACT,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG;YAC3B,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;SACjD;QACD,QAAQ,EAAE,WAAW,CAAC,WAAW;QACjC,KAAK,EAAE,IAAA,yCAAwB,EAAC,OAAO,EAAE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