Skip to content

Commit f4483bc

Browse files
committed
testing new changes
1 parent 30b17c9 commit f4483bc

File tree

9 files changed

+78
-38
lines changed

9 files changed

+78
-38
lines changed

lib/ActionInputValidator/ActionValidators/SpnLinuxWebAppValidator.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
11
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
9+
}) : (function(o, m, k, k2) {
10+
if (k2 === undefined) k2 = k;
11+
o[k2] = m[k];
12+
}));
13+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14+
Object.defineProperty(o, "default", { enumerable: true, value: v });
15+
}) : function(o, v) {
16+
o["default"] = v;
17+
});
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
235
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
336
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
437
return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,11 +43,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
1043
};
1144
Object.defineProperty(exports, "__esModule", { value: true });
1245
exports.SpnLinuxWebAppValidator = void 0;
46+
const core = __importStar(require("@actions/core"));
1347
const Validations_1 = require("../Validations");
1448
const actionparameters_1 = require("../../actionparameters");
1549
class SpnLinuxWebAppValidator {
1650
validate() {
1751
return __awaiter(this, void 0, void 0, function* () {
52+
core.info("Validating SPN Linux Web App inputs...");
1853
let actionParams = actionparameters_1.ActionParameters.getActionParams();
1954
(0, Validations_1.containerInputsNotAllowed)(actionParams.images, actionParams.multiContainerConfigFile);
2055
yield (0, Validations_1.validatePackageInput)();

lib/ActionInputValidator/ActionValidators/SpnWebAppSiteContainersValidator.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
11
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
9+
}) : (function(o, m, k, k2) {
10+
if (k2 === undefined) k2 = k;
11+
o[k2] = m[k];
12+
}));
13+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14+
Object.defineProperty(o, "default", { enumerable: true, value: v });
15+
}) : function(o, v) {
16+
o["default"] = v;
17+
});
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
235
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
336
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
437
return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,6 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
1043
};
1144
Object.defineProperty(exports, "__esModule", { value: true });
1245
exports.SpnWebAppSiteContainersValidator = void 0;
46+
const core = __importStar(require("@actions/core"));
1347
const Validations_1 = require("../Validations");
1448
const SpnLinuxWebAppValidator_1 = require("./SpnLinuxWebAppValidator");
1549
class SpnWebAppSiteContainersValidator extends SpnLinuxWebAppValidator_1.SpnLinuxWebAppValidator {
@@ -19,6 +53,7 @@ class SpnWebAppSiteContainersValidator extends SpnLinuxWebAppValidator_1.SpnLinu
1953
});
2054
return __awaiter(this, void 0, void 0, function* () {
2155
yield _super.validate.call(this);
56+
core.info("Validating SPN Web App Site Containers inputs...");
2257
(0, Validations_1.validateSiteContainersInputs)();
2358
});
2459
}

lib/DeploymentProvider/DeploymentProviderFactory.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,6 @@
11
"use strict";
2-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3-
if (k2 === undefined) k2 = k;
4-
var desc = Object.getOwnPropertyDescriptor(m, k);
5-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6-
desc = { enumerable: true, get: function() { return m[k]; } };
7-
}
8-
Object.defineProperty(o, k2, desc);
9-
}) : (function(o, m, k, k2) {
10-
if (k2 === undefined) k2 = k;
11-
o[k2] = m[k];
12-
}));
13-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14-
Object.defineProperty(o, "default", { enumerable: true, value: v });
15-
}) : function(o, v) {
16-
o["default"] = v;
17-
});
18-
var __importStar = (this && this.__importStar) || (function () {
19-
var ownKeys = function(o) {
20-
ownKeys = Object.getOwnPropertyNames || function (o) {
21-
var ar = [];
22-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23-
return ar;
24-
};
25-
return ownKeys(o);
26-
};
27-
return function (mod) {
28-
if (mod && mod.__esModule) return mod;
29-
var result = {};
30-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31-
__setModuleDefault(result, mod);
32-
return result;
33-
};
34-
})();
352
Object.defineProperty(exports, "__esModule", { value: true });
363
exports.DeploymentProviderFactory = void 0;
37-
const core = __importStar(require("@actions/core"));
384
const actionparameters_1 = require("../actionparameters");
395
const BaseWebAppDeploymentProvider_1 = require("./Providers/BaseWebAppDeploymentProvider");
406
const WebAppContainerDeployment_1 = require("./Providers/WebAppContainerDeployment");

lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const path_1 = __importDefault(require("path"));
5757
class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider_1.BaseWebAppDeploymentProvider {
5858
DeployWebAppStep() {
5959
return __awaiter(this, void 0, void 0, function* () {
60+
core.info("Starting deployment for web app...");
6061
let appPackage = this.actionParams.package;
6162
let webPackage = appPackage.getPath();
6263
const validTypes = ["war", "jar", "ear", "zip", "static"];

node_modules/.package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ActionInputValidator/ActionValidators/SpnLinuxWebAppValidator.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as core from '@actions/core';
12
import { appNameIsRequired, containerInputsNotAllowed, validatePackageInput } from "../Validations";
23

34
import { ActionParameters } from "../../actionparameters";
@@ -7,6 +8,8 @@ export class SpnLinuxWebAppValidator implements IValidator {
78

89
async validate(): Promise<void> {
910

11+
core.info("Validating SPN Linux Web App inputs...");
12+
1013
let actionParams: ActionParameters = ActionParameters.getActionParams();
1114

1215
containerInputsNotAllowed(actionParams.images, actionParams.multiContainerConfigFile);

src/ActionInputValidator/ActionValidators/SpnWebAppSiteContainersValidator.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as core from '@actions/core';
12
import { validateSiteContainersInputs } from "../Validations";
23

34
import { IValidator } from "./IValidator";
@@ -6,6 +7,8 @@ import { SpnLinuxWebAppValidator } from "./SpnLinuxWebAppValidator";
67
export class SpnWebAppSiteContainersValidator extends SpnLinuxWebAppValidator {
78
async validate(): Promise<void> {
89
await super.validate();
10+
11+
core.info("Validating SPN Web App Site Containers inputs...");
912
validateSiteContainersInputs();
1013
}
1114
}

src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import path from 'path';
1313
export class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider {
1414

1515
public async DeployWebAppStep() {
16+
core.info("Starting deployment for web app...");
1617
let appPackage: Package = this.actionParams.package;
1718
let webPackage = appPackage.getPath();
1819

0 commit comments

Comments
 (0)