mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-01 22:36:15 -07:00
* Rename "Cloud Runner" to "Orchestrator" across entire codebase Breaking change: All CloudRunner classes, options, environment variables, and action.yml inputs have been renamed to Orchestrator equivalents. - Renamed src/model/cloud-runner/ directory to src/model/orchestrator/ - Renamed all cloud-runner-* files to orchestrator-* - Renamed all CloudRunner* classes to Orchestrator* (15+ classes) - Renamed all cloudRunner* properties to orchestrator* equivalents - Renamed CLOUD_RUNNER_* env vars to ORCHESTRATOR_* - Updated action.yml [CloudRunner] markers to [Orchestrator] - Updated workflow files and package.json test scripts - Updated all runtime strings (cache paths, log messages, branch refs) - Rebuilt dist/index.js No backward compatibility layer is provided. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove tracked log/temp files and add to .gitignore Remove $LOG_FILE and temp/job-log.txt debug artifacts that should not be in the repository. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
// Integration test for exercising real GitHub check creation and updates.
|
|
import Orchestrator from '../model/orchestrator/orchestrator';
|
|
import UnityVersioning from '../model/unity-versioning';
|
|
import GitHub from '../model/github';
|
|
import { TIMEOUT_INFINITE, createParameters } from '../test-utils/orchestrator-test-helpers';
|
|
|
|
const runIntegration = process.env.RUN_GITHUB_INTEGRATION_TESTS === 'true';
|
|
const describeOrSkip = runIntegration ? describe : describe.skip;
|
|
|
|
describeOrSkip('Orchestrator Github Checks Integration', () => {
|
|
it(
|
|
'creates and updates a real GitHub check',
|
|
async () => {
|
|
const buildParameter = await createParameters({
|
|
versioning: 'None',
|
|
projectPath: 'test-project',
|
|
unityVersion: UnityVersioning.read('test-project'),
|
|
asyncOrchestrator: `true`,
|
|
githubChecks: `true`,
|
|
});
|
|
await Orchestrator.setup(buildParameter);
|
|
const checkId = await GitHub.createGitHubCheck(`integration create`);
|
|
expect(checkId).not.toEqual('');
|
|
await GitHub.updateGitHubCheck(`1 ${new Date().toISOString()}`, `integration`);
|
|
await GitHub.updateGitHubCheck(`2 ${new Date().toISOString()}`, `integration`, `success`, `completed`);
|
|
},
|
|
TIMEOUT_INFINITE,
|
|
);
|
|
});
|