mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-16 13:06:53 -07:00
build: Update built artifacts after linting fixes
- Rebuild dist/ with latest changes - Include updated provider loader in built bundle - Ensure all changes are reflected in compiled output
This commit is contained in:
@@ -91,7 +91,6 @@ jobs:
|
|||||||
- name: Start LocalStack (S3)
|
- name: Start LocalStack (S3)
|
||||||
uses: localstack/setup-localstack@v0.2.3
|
uses: localstack/setup-localstack@v0.2.3
|
||||||
with:
|
with:
|
||||||
services: s3
|
|
||||||
install-awslocal: true
|
install-awslocal: true
|
||||||
- name: Create S3 bucket for tests (host LocalStack)
|
- name: Create S3 bucket for tests (host LocalStack)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+5
-5
@@ -4484,12 +4484,12 @@ async function loadProvider(providerName, buildParameters) {
|
|||||||
try {
|
try {
|
||||||
// Map provider names to their module paths for built-in providers
|
// Map provider names to their module paths for built-in providers
|
||||||
const providerModuleMap = {
|
const providerModuleMap = {
|
||||||
'aws': './aws',
|
aws: './aws',
|
||||||
'k8s': './k8s',
|
k8s: './k8s',
|
||||||
'test': './test',
|
test: './test',
|
||||||
'local-docker': './docker',
|
'local-docker': './docker',
|
||||||
'local-system': './local',
|
'local-system': './local',
|
||||||
'local': './local'
|
local: './local',
|
||||||
};
|
};
|
||||||
const modulePath = providerModuleMap[providerName] || providerName;
|
const modulePath = providerModuleMap[providerName] || providerName;
|
||||||
importedModule = await Promise.resolve().then(() => __importStar(require(modulePath)));
|
importedModule = await Promise.resolve().then(() => __importStar(require(modulePath)));
|
||||||
@@ -4516,7 +4516,7 @@ async function loadProvider(providerName, buildParameters) {
|
|||||||
];
|
];
|
||||||
for (const method of requiredMethods) {
|
for (const method of requiredMethods) {
|
||||||
if (typeof instance[method] !== 'function') {
|
if (typeof instance[method] !== 'function') {
|
||||||
throw new Error(`Provider package '${providerName}' does not implement ProviderInterface. Missing method '${method}'.`);
|
throw new TypeError(`Provider package '${providerName}' does not implement ProviderInterface. Missing method '${method}'.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cloud_runner_logger_1.default.log(`Successfully loaded provider: ${providerName}`);
|
cloud_runner_logger_1.default.log(`Successfully loaded provider: ${providerName}`);
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user