Basic cloud runner test
parent
038f8a825f
commit
d8fa82d883
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue