Basic cloud runner test

pull/310/head
Frostebite 2021-12-20 00:22:47 +00:00
parent 038f8a825f
commit d8fa82d883
5 changed files with 7 additions and 4 deletions

View File

@ -50,7 +50,7 @@ jobs:
node-version: 12.x
- run: yarn
- run: yarn lint
- run: yarn test
- run: yarn test --runInBand
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

2
dist/index.js vendored
View File

@ -1235,7 +1235,7 @@ class CloudRunnerError {
static handleException(error) {
return __awaiter(this, void 0, void 0, function* () {
cloud_runner_logger_1.default.error(JSON.stringify(error, undefined, 4));
core.setFailed('Remote Builder failed');
core.setFailed('Cloud Runner failed');
yield cloud_runner_state_1.CloudRunnerState.CloudRunnerProviderPlatform.cleanupSharedBuildResources(cloud_runner_state_1.CloudRunnerState.buildGuid, cloud_runner_state_1.CloudRunnerState.buildParams, cloud_runner_state_1.CloudRunnerState.branchName, cloud_runner_state_1.CloudRunnerState.defaultSecrets);
});
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,9 @@ import { BuildParameters, ImageTag } from '..';
import CloudRunner from './cloud-runner';
import Input from '../input';
describe('Cloud Runner', () => {
it('responds', () => {});
});
if (process.env.INCLUDE_CLOUD_RUNNER_TEST !== undefined) {
describe('Cloud Runner', () => {
it('builds', async () => {

View File

@ -5,7 +5,7 @@ import * as core from '@actions/core';
export class CloudRunnerError {
public static async handleException(error: unknown) {
CloudRunnerLogger.error(JSON.stringify(error, undefined, 4));
core.setFailed('Remote Builder failed');
core.setFailed('Cloud Runner failed');
await CloudRunnerState.CloudRunnerProviderPlatform.cleanupSharedBuildResources(
CloudRunnerState.buildGuid,
CloudRunnerState.buildParams,