revert first commit
parent
15f43f6689
commit
ef11cdccd1
|
|
@ -40,10 +40,6 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
default: 'Test Results'
|
default: 'Test Results'
|
||||||
description: 'Name for the check run that is created when a github token is provided.'
|
description: 'Name for the check run that is created when a github token is provided.'
|
||||||
packageMode:
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
description: 'Whether the tests are being run for a Unity package. Not needed for packages located within a Unity Project'
|
|
||||||
outputs:
|
outputs:
|
||||||
artifactsPath:
|
artifactsPath:
|
||||||
description: 'Path where the artifacts are stored'
|
description: 'Path where the artifacts are stored'
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ async function action() {
|
||||||
sshAgent,
|
sshAgent,
|
||||||
githubToken,
|
githubToken,
|
||||||
checkName,
|
checkName,
|
||||||
packageMode,
|
|
||||||
} = Input.getFromUser();
|
} = Input.getFromUser();
|
||||||
const baseImage = ImageTag.createForBase({ version: unityVersion, customImage });
|
const baseImage = ImageTag.createForBase({ version: unityVersion, customImage });
|
||||||
|
|
||||||
|
|
@ -34,7 +33,6 @@ async function action() {
|
||||||
useHostNetwork,
|
useHostNetwork,
|
||||||
customParameters,
|
customParameters,
|
||||||
sshAgent,
|
sshAgent,
|
||||||
packageMode,
|
|
||||||
githubToken,
|
githubToken,
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ class Docker {
|
||||||
useHostNetwork,
|
useHostNetwork,
|
||||||
customParameters,
|
customParameters,
|
||||||
sshAgent,
|
sshAgent,
|
||||||
packageMode,
|
|
||||||
githubToken,
|
githubToken,
|
||||||
} = parameters;
|
} = parameters;
|
||||||
|
|
||||||
|
|
@ -44,7 +43,6 @@ class Docker {
|
||||||
--env TEST_MODE="${testMode}" \
|
--env TEST_MODE="${testMode}" \
|
||||||
--env ARTIFACTS_PATH="${artifactsPath}" \
|
--env ARTIFACTS_PATH="${artifactsPath}" \
|
||||||
--env CUSTOM_PARAMETERS="${customParameters}" \
|
--env CUSTOM_PARAMETERS="${customParameters}" \
|
||||||
--env PACKAGE_MODE="${packageMode}" \
|
|
||||||
--env GITHUB_REF \
|
--env GITHUB_REF \
|
||||||
--env GITHUB_SHA \
|
--env GITHUB_SHA \
|
||||||
--env GITHUB_REPOSITORY \
|
--env GITHUB_REPOSITORY \
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ class Input {
|
||||||
const sshAgent = getInput('sshAgent') || '';
|
const sshAgent = getInput('sshAgent') || '';
|
||||||
const githubToken = getInput('githubToken') || '';
|
const githubToken = getInput('githubToken') || '';
|
||||||
const checkName = getInput('checkName') || 'Test Results';
|
const checkName = getInput('checkName') || 'Test Results';
|
||||||
const rawPackageMode = getInput('packageMode') || 'false';
|
|
||||||
|
|
||||||
// Validate input
|
// Validate input
|
||||||
if (!includes(this.testModes, testMode)) {
|
if (!includes(this.testModes, testMode)) {
|
||||||
|
|
@ -44,18 +43,12 @@ class Input {
|
||||||
throw new Error(`Invalid useHostNetwork "${rawUseHostNetwork}"`);
|
throw new Error(`Invalid useHostNetwork "${rawUseHostNetwork}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rawPackageMode !== 'true' && rawPackageMode !== 'false') {
|
|
||||||
throw new Error(`Invalid packageMode "${rawPackageMode}"`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sanitise input
|
// Sanitise input
|
||||||
const projectPath = rawProjectPath.replace(/\/$/, '');
|
const projectPath = rawProjectPath.replace(/\/$/, '');
|
||||||
const artifactsPath = rawArtifactsPath.replace(/\/$/, '');
|
const artifactsPath = rawArtifactsPath.replace(/\/$/, '');
|
||||||
const useHostNetwork = rawUseHostNetwork === 'true';
|
const useHostNetwork = rawUseHostNetwork === 'true';
|
||||||
const unityVersion =
|
const unityVersion =
|
||||||
rawUnityVersion === 'auto' ? UnityVersionParser.read(projectPath) : rawUnityVersion;
|
rawUnityVersion === 'auto' ? UnityVersionParser.read(projectPath) : rawUnityVersion;
|
||||||
const packageMode = rawPackageMode === 'true';
|
|
||||||
|
|
||||||
|
|
||||||
// Return sanitised input
|
// Return sanitised input
|
||||||
return {
|
return {
|
||||||
|
|
@ -69,7 +62,6 @@ class Input {
|
||||||
sshAgent,
|
sshAgent,
|
||||||
githubToken,
|
githubToken,
|
||||||
checkName,
|
checkName,
|
||||||
packageMode,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue