Feature/create check (#97)

This commit is contained in:
David Finol
2021-02-27 12:13:19 -06:00
committed by GitHub
parent 345f4c64bd
commit 43d90c252f
25 changed files with 1018 additions and 13 deletions

View File

@@ -21,6 +21,9 @@ class Input {
const rawProjectPath = getInput('projectPath') || '.';
const rawArtifactsPath = getInput('artifactsPath') || 'artifacts';
const rawUseHostNetwork = getInput('useHostNetwork') || 'false';
const rawCreateCheck = getInput('createCheck') || 'false';
const checkName = getInput('checkName') || 'Test Results';
const githubToken = getInput('githubToken') || '';
const customParameters = getInput('customParameters') || '';
// Validate input
@@ -44,6 +47,7 @@ class Input {
const projectPath = rawProjectPath.replace(/\/$/, '');
const artifactsPath = rawArtifactsPath.replace(/\/$/, '');
const useHostNetwork = rawUseHostNetwork === 'true';
const createCheck = rawCreateCheck === 'true';
const unityVersion =
rawUnityVersion === 'auto' ? UnityVersionParser.read(projectPath) : rawUnityVersion;
@@ -55,6 +59,9 @@ class Input {
testMode,
artifactsPath,
useHostNetwork,
createCheck,
checkName,
githubToken,
customParameters,
};
}