mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-16 21:16:47 -07:00
fix(ci): update workflow references from loadEnterpriseServices to loadPluginServices
CI workflows still referenced the old function name after the rename. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -90,7 +90,7 @@ jobs:
|
|||||||
- name: Verify all services and lazy loaders
|
- name: Verify all services and lazy loaders
|
||||||
run: |
|
run: |
|
||||||
node -e "
|
node -e "
|
||||||
const { loadOrchestrator, loadEnterpriseServices } = require('./lib/model/orchestrator-plugin');
|
const { loadOrchestrator, loadPluginServices } = require('./lib/model/orchestrator-plugin');
|
||||||
(async () => {
|
(async () => {
|
||||||
const orch = await loadOrchestrator();
|
const orch = await loadOrchestrator();
|
||||||
if (!orch || typeof orch.run !== 'function') {
|
if (!orch || typeof orch.run !== 'function') {
|
||||||
@@ -99,8 +99,8 @@ jobs:
|
|||||||
}
|
}
|
||||||
console.log('✓ loadOrchestrator().run is a function');
|
console.log('✓ loadOrchestrator().run is a function');
|
||||||
|
|
||||||
const services = await loadEnterpriseServices();
|
const services = await loadPluginServices();
|
||||||
if (!services) { console.error('ERROR: loadEnterpriseServices failed'); process.exit(1); }
|
if (!services) { console.error('ERROR: loadPluginServices failed'); process.exit(1); }
|
||||||
|
|
||||||
const eager = ['BuildReliabilityService','TestWorkflowService','HotRunnerService','OutputService','OutputTypeRegistry','ArtifactUploadHandler','IncrementalSyncService'];
|
const eager = ['BuildReliabilityService','TestWorkflowService','HotRunnerService','OutputService','OutputTypeRegistry','ArtifactUploadHandler','IncrementalSyncService'];
|
||||||
for (const s of eager) { if (!services[s]) { console.error('Missing: ' + s); process.exit(1); } }
|
for (const s of eager) { if (!services[s]) { console.error('Missing: ' + s); process.exit(1); } }
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Checking plugin loader handles missing @game-ci/orchestrator..."
|
echo "Checking plugin loader handles missing @game-ci/orchestrator..."
|
||||||
node -e "
|
node -e "
|
||||||
const { loadOrchestrator, loadEnterpriseServices } = require('./lib/model/orchestrator-plugin');
|
const { loadOrchestrator, loadPluginServices } = require('./lib/model/orchestrator-plugin');
|
||||||
(async () => {
|
(async () => {
|
||||||
const orch = await loadOrchestrator();
|
const orch = await loadOrchestrator();
|
||||||
if (orch !== undefined) {
|
if (orch !== undefined) {
|
||||||
@@ -108,12 +108,12 @@ jobs:
|
|||||||
}
|
}
|
||||||
console.log('✓ loadOrchestrator() returns undefined when package not installed');
|
console.log('✓ loadOrchestrator() returns undefined when package not installed');
|
||||||
|
|
||||||
const services = await loadEnterpriseServices();
|
const services = await loadPluginServices();
|
||||||
if (services !== undefined) {
|
if (services !== undefined) {
|
||||||
console.error('ERROR: loadEnterpriseServices should return undefined when package not installed');
|
console.error('ERROR: loadPluginServices should return undefined when package not installed');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
console.log('✓ loadEnterpriseServices() returns undefined when package not installed');
|
console.log('✓ loadPluginServices() returns undefined when package not installed');
|
||||||
})();
|
})();
|
||||||
"
|
"
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Checking plugin loader returns defined exports..."
|
echo "Checking plugin loader returns defined exports..."
|
||||||
node -e "
|
node -e "
|
||||||
const { loadOrchestrator, loadEnterpriseServices } = require('./lib/model/orchestrator-plugin');
|
const { loadOrchestrator, loadPluginServices } = require('./lib/model/orchestrator-plugin');
|
||||||
(async () => {
|
(async () => {
|
||||||
const orch = await loadOrchestrator();
|
const orch = await loadOrchestrator();
|
||||||
if (orch === undefined) {
|
if (orch === undefined) {
|
||||||
@@ -166,9 +166,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
console.log('✓ loadOrchestrator() returns defined exports with orchestrator installed');
|
console.log('✓ loadOrchestrator() returns defined exports with orchestrator installed');
|
||||||
|
|
||||||
const services = await loadEnterpriseServices();
|
const services = await loadPluginServices();
|
||||||
if (services === undefined) {
|
if (services === undefined) {
|
||||||
console.error('ERROR: loadEnterpriseServices should return defined exports when package is installed');
|
console.error('ERROR: loadPluginServices should return defined exports when package is installed');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
const expectedServices = [
|
const expectedServices = [
|
||||||
@@ -182,7 +182,7 @@ jobs:
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('✓ loadEnterpriseServices() returns all ' + expectedServices.length + ' services');
|
console.log('✓ loadPluginServices() returns all ' + expectedServices.length + ' services');
|
||||||
|
|
||||||
const lazyLoaders = [
|
const lazyLoaders = [
|
||||||
'loadChildWorkspaceService', 'loadLocalCacheService',
|
'loadChildWorkspaceService', 'loadLocalCacheService',
|
||||||
|
|||||||
Reference in New Issue
Block a user