@catladder/pipeline 1.110.0 โ†’ 1.110.1

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.
@@ -49,12 +49,13 @@ var cache_1 = require("./cache");
49
49
  var constants_1 = require("./constants");
50
50
  var yarn_1 = require("./yarn");
51
51
  var createNodeTestJobs = function (context) {
52
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
52
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
53
53
  // don't run tests after release
54
54
  if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
55
55
  return [];
56
56
  }
57
57
  var buildConfig = context.componentConfig.build;
58
+ var defaultImage = (0, runner_1.getRunnerImage)("jobs-default");
58
59
  var base = {
59
60
  variables: __assign(__assign(__assign({
60
61
  APP_PATH: context.componentConfig.dir
@@ -67,23 +68,25 @@ var createNodeTestJobs = function (context) {
67
68
  var auditJob = buildConfig.audit !== false ? __assign(__assign({
68
69
  name: "๐Ÿ›ก audit"
69
70
  }, base), {
71
+ image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : defaultImage,
70
72
  cache: undefined,
71
- script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((_d = (0, utils_1.ensureArray)((_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.command)) !== null && _d !== void 0 ? _d : [((_e = context.packageManagerInfo) === null || _e === void 0 ? void 0 : _e.isClassic) ? "yarn audit" : "yarn npm audit --environment production" // yarn 2
73
+ script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [((_g = context.packageManagerInfo) === null || _g === void 0 ? void 0 : _g.isClassic) ? "yarn audit" : "yarn npm audit --environment production" // yarn 2
72
74
  ]), false),
73
75
  allow_failure: true
74
76
  }) : null;
75
77
  var lintJob = buildConfig.lint !== false ? __assign(__assign({
76
78
  name: "๐Ÿ‘ฎ lint"
77
79
  }, base), {
80
+ image: (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : defaultImage,
78
81
  cache: (0, cache_1.getNodeCache)(context),
79
- script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_g = (0, utils_1.ensureArray)((_f = buildConfig.lint) === null || _f === void 0 ? void 0 : _f.command)) !== null && _g !== void 0 ? _g : ["yarn lint"]), false)
82
+ script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_l = (0, utils_1.ensureArray)((_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.command)) !== null && _l !== void 0 ? _l : ["yarn lint"]), false)
80
83
  }) : null;
81
84
  var testJob = buildConfig.test !== false ? __assign(__assign({
82
85
  name: "๐Ÿงช test"
83
86
  }, base), {
84
- image: (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
87
+ image: (_o = (_m = buildConfig.test) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
85
88
  cache: (0, cache_1.getNodeCache)(context),
86
- script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_j = (0, utils_1.ensureArray)((_h = buildConfig.test) === null || _h === void 0 ? void 0 : _h.command)) !== null && _j !== void 0 ? _j : ["yarn test"]), false)
89
+ script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_q = (0, utils_1.ensureArray)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : ["yarn test"]), false)
87
90
  }) : null;
88
91
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
89
92
  };