Add some more basic tests 🤷‍♂️

This commit is contained in:
Webber
2020-01-27 23:03:29 +01:00
committed by Webber Takken
parent fe2311ef4b
commit 4051832dc0
9 changed files with 217 additions and 1 deletions

View File

@@ -7,12 +7,16 @@ class Input {
// Input variables specified in workflows using "with" prop.
const unityVersion = core.getInput('unityVersion');
const targetPlatform = core.getInput('targetPlatform') || Platform.default;
const projectPath = core.getInput('projectPath') || '.';
const rawProjectPath = core.getInput('projectPath') || '.';
const buildName = core.getInput('buildName') || targetPlatform;
const buildsPath = core.getInput('buildsPath') || 'build';
const buildMethod = core.getInput('buildMethod'); // processed in docker file
const customParameters = core.getInput('customParameters') || '';
// Sanitise input
const projectPath = rawProjectPath.replace(/\/$/, '');
// Return sanitised input
return {
unityVersion,
targetPlatform,