mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
cleanup async parameter
This commit is contained in:
parent
e296ef2dc1
commit
dd13cba2ce
@ -6,7 +6,7 @@ import CloudRunnerOptions from '../options/cloud-runner-options';
|
|||||||
import setups from './cloud-runner-suite.test';
|
import setups from './cloud-runner-suite.test';
|
||||||
import { OptionValues } from 'commander';
|
import { OptionValues } from 'commander';
|
||||||
import GitHub from '../../github';
|
import GitHub from '../../github';
|
||||||
|
export const TIMEOUT_INFINITE = 1e9;
|
||||||
async function CreateParameters(overrides: OptionValues | undefined) {
|
async function CreateParameters(overrides: OptionValues | undefined) {
|
||||||
if (overrides) Cli.options = overrides;
|
if (overrides) Cli.options = overrides;
|
||||||
|
|
||||||
@ -17,33 +17,41 @@ describe('Cloud Runner Github Checks', () => {
|
|||||||
it('Responds', () => {});
|
it('Responds', () => {});
|
||||||
|
|
||||||
if (CloudRunnerOptions.cloudRunnerDebug && CloudRunnerOptions.providerStrategy === `local-docker`) {
|
if (CloudRunnerOptions.cloudRunnerDebug && CloudRunnerOptions.providerStrategy === `local-docker`) {
|
||||||
it('Check Handling Direct', async () => {
|
it(
|
||||||
// Setup parameters
|
'Check Handling Direct',
|
||||||
const buildParameter = await CreateParameters({
|
async () => {
|
||||||
versioning: 'None',
|
// Setup parameters
|
||||||
projectPath: 'test-project',
|
const buildParameter = await CreateParameters({
|
||||||
unityVersion: UnityVersioning.read('test-project'),
|
versioning: 'None',
|
||||||
asyncCloudRunner: `true`,
|
projectPath: 'test-project',
|
||||||
githubChecks: `true`,
|
unityVersion: UnityVersioning.read('test-project'),
|
||||||
});
|
asyncCloudRunner: `true`,
|
||||||
await CloudRunner.setup(buildParameter);
|
githubChecks: `true`,
|
||||||
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
});
|
||||||
await GitHub.updateGitHubCheck(`t`, `t2`);
|
await CloudRunner.setup(buildParameter);
|
||||||
}, 1_000_000_000);
|
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
||||||
it('Check Handling Via Async Workflow', async () => {
|
await GitHub.updateGitHubCheck(`t`, `t2`);
|
||||||
// Setup parameters
|
},
|
||||||
const buildParameter = await CreateParameters({
|
TIMEOUT_INFINITE,
|
||||||
versioning: 'None',
|
);
|
||||||
projectPath: 'test-project',
|
it(
|
||||||
unityVersion: UnityVersioning.read('test-project'),
|
'Check Handling Via Async Workflow',
|
||||||
asyncCloudRunner: `true`,
|
async () => {
|
||||||
githubChecks: `true`,
|
// Setup parameters
|
||||||
});
|
const buildParameter = await CreateParameters({
|
||||||
GitHub.forceAsyncTest = true;
|
versioning: 'None',
|
||||||
await CloudRunner.setup(buildParameter);
|
projectPath: 'test-project',
|
||||||
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
unityVersion: UnityVersioning.read('test-project'),
|
||||||
await GitHub.updateGitHubCheck(`t`, `t2`);
|
asyncCloudRunner: `true`,
|
||||||
GitHub.forceAsyncTest = false;
|
githubChecks: `true`,
|
||||||
}, 1_000_000_000);
|
});
|
||||||
|
GitHub.forceAsyncTest = true;
|
||||||
|
await CloudRunner.setup(buildParameter);
|
||||||
|
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
||||||
|
await GitHub.updateGitHubCheck(`t`, `t2`);
|
||||||
|
GitHub.forceAsyncTest = false;
|
||||||
|
},
|
||||||
|
TIMEOUT_INFINITE,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user