Skip to content

Commit

Permalink
[AUTO] Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
sersoft-bot committed Sep 29, 2021
1 parent a3e674a commit 46e8778
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,27 @@ async function main() {
}
}
function _addInputArg(inputName, opts) {
let value = core.getInput(inputName);
if (value) {
function _processValue(value, skipEmptyValues) {
let processedValue = value;
if (skipEmptyValues) {
processedValue = processedValue.trim();
if (processedValue.length <= 0)
return;
}
if (opts === null || opts === void 0 ? void 0 : opts.isPath) {
value = path.resolve(value);
processedValue = path.resolve(processedValue);
}
_pushArgs(inputName, opts === null || opts === void 0 ? void 0 : opts.argName, value);
_pushArgs(inputName, opts === null || opts === void 0 ? void 0 : opts.argName, processedValue);
}
if (opts === null || opts === void 0 ? void 0 : opts.isList) {
let values = core.getMultilineInput(inputName);
if (values)
values.forEach(value => _processValue(value, true));
}
else {
let value = core.getInput(inputName);
if (value)
_processValue(value, false);
}
}
function addInputArg(inputName, argName) {
Expand All @@ -153,6 +168,9 @@ async function main() {
function addPathArg(inputName, argName) {
_addInputArg(inputName, { argName: argName, isPath: true });
}
function addListArg(inputName, argName) {
_addInputArg(inputName, { argName: argName, isList: true });
}
function addBoolArg(inputName, argName) {
const value = core.getInput(inputName);
if (value) {
Expand All @@ -174,6 +192,8 @@ async function main() {
addFlagArg('parallelize-targets', 'parallelizeTargets');
addBoolArg('enable-code-coverage', 'enableCodeCoverage');
addBoolArg('parallel-testing-enabled');
addInputArg('maximum-concurrent-test-device-destinations');
addInputArg('maximum-concurrent-test-simulator-destinations');
addFlagArg('quiet');
addFlagArg('hide-shell-script-environment', 'hideShellScriptEnvironment');
addBoolArg('enable-address-sanitizer', 'enableAddressSanitizer');
Expand All @@ -186,7 +206,8 @@ async function main() {
addPathArg('xcroot');
addPathArg('xctestrun');
addInputArg('test-plan', 'testPlan');
addInputArg('skip-testing');
addListArg('only-testing');
addListArg('skip-testing');
addFlagArg('skip-unavailable-actions', 'skipUnavailableActions');
addFlagArg('allow-provisioning-updates', 'allowProvisioningUpdates');
addFlagArg('allow-provisioning-device-registration', 'allowProvisioningDeviceRegistration');
Expand Down

0 comments on commit 46e8778

Please sign in to comment.