@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.
- package/dist/build/node/testJob.js +8 -5
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-non-public.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-sql.ts.snap +8 -0
- package/examples/__snapshots__/custom-deploy.ts.snap +4 -0
- package/examples/__snapshots__/custom-envs.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-application-customization.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +8 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +4 -0
- package/examples/__snapshots__/native-app.ts.snap +8 -0
- package/examples/__snapshots__/node-build-with-custom-image.ts.snap +4 -0
- package/examples/__snapshots__/wait-for-other-deploy.ts.snap +8 -0
- package/package.json +1 -1
- package/src/build/node/testJob.ts +5 -4
|
@@ -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((
|
|
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((
|
|
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((
|
|
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
|
};
|