Basic cloud runner test

pull/310/head
Frostebite 2021-12-20 00:31:39 +00:00
parent 5a65196386
commit bed8d9f964
4 changed files with 6 additions and 4 deletions

View File

@ -49,7 +49,6 @@ jobs:
with: with:
node-version: 12.x node-version: 12.x
- run: yarn - run: yarn
- run: yarn lint
- run: yarn test -i - run: yarn test -i
env: env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

3
dist/index.js vendored
View File

@ -393,6 +393,7 @@ exports.AWSBaseStack = void 0;
const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855)); const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855));
const core = __importStar(__webpack_require__(42186)); const core = __importStar(__webpack_require__(42186));
const fs = __importStar(__webpack_require__(35747)); const fs = __importStar(__webpack_require__(35747));
const path_1 = __importDefault(__webpack_require__(85622));
const crypto = __webpack_require__(33373); const crypto = __webpack_require__(33373);
class AWSBaseStack { class AWSBaseStack {
constructor(baseStackName) { constructor(baseStackName) {
@ -402,7 +403,7 @@ class AWSBaseStack {
var _a, _b, _c, _d, _e; var _a, _b, _c, _d, _e;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const baseStackName = this.baseStackName; const baseStackName = this.baseStackName;
const baseStack = fs.readFileSync(`${__dirname}\\cloud-formations\\base-setup.yml`, 'utf8'); const baseStack = fs.readFileSync(path_1.default.join(__dirname, 'cloud-formations', 'base-setup.yml'), 'utf8');
// Cloud Formation Input // Cloud Formation Input
const describeStackInput = { const describeStackInput = {
StackName: baseStackName, StackName: baseStackName,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,7 @@ import CloudRunnerLogger from '../services/cloud-runner-logger';
import * as core from '@actions/core'; import * as core from '@actions/core';
import * as SDK from 'aws-sdk'; import * as SDK from 'aws-sdk';
import * as fs from 'fs'; import * as fs from 'fs';
import path from 'path';
const crypto = require('crypto'); const crypto = require('crypto');
export class AWSBaseStack { export class AWSBaseStack {
@ -12,7 +13,8 @@ export class AWSBaseStack {
async setupBaseStack(CF: SDK.CloudFormation) { async setupBaseStack(CF: SDK.CloudFormation) {
const baseStackName = this.baseStackName; const baseStackName = this.baseStackName;
const baseStack = fs.readFileSync(`${__dirname}\\cloud-formations\\base-setup.yml`, 'utf8');
const baseStack = fs.readFileSync(path.join(__dirname, 'cloud-formations', 'base-setup.yml'), 'utf8');
// Cloud Formation Input // Cloud Formation Input
const describeStackInput: SDK.CloudFormation.DescribeStacksInput = { const describeStackInput: SDK.CloudFormation.DescribeStacksInput = {