Integration test removed, workflows serve as good integration tests

pull/310/head
Frostebite 2021-09-30 00:00:44 +01:00
parent 22c1b903a4
commit 1ce7383d4a
4 changed files with 9 additions and 44 deletions

View File

@ -25,6 +25,12 @@ inputs:
postBuildSteps:
required: false
default: ''
preBuildSteps:
required: false
default: ''
customBuildSteps:
required: false
default: ''
buildsPath:
required: false
default: ''

18
dist/index.js vendored
View File

@ -1252,24 +1252,6 @@ class CloudRunner {
}
});
}
static runEphemeralRegistrationJob(buildSteps) {
return __awaiter(this, void 0, void 0, function* () {
buildSteps = yaml_1.default.parse(buildSteps);
for (const step of buildSteps) {
const stepSecrets = step.secrets.map((x) => {
const secret = {
ParameterKey: x.name,
EnvironmentVariable: x.name,
ParameterValue: x.value,
};
return secret;
});
yield this.CloudRunnerProviderPlatform.runBuildTask(this.buildGuid, step['image'], [
'mkdir actions-runner && cd actions-runner && curl -O -L https://github.com/actions/runner/releases/download/v2.283.1/actions-runner-linux-x64-2.283.1.tar.gz && tar xzf ./actions-runner-linux-x64-2.283.1.tar.gz && ls',
], `/${buildVolumeFolder}`, `/${buildVolumeFolder}`, this.defaultGitShaEnvironmentVariable, [...this.defaultSecrets, ...stepSecrets]);
}
});
}
static setupStep() {
return __awaiter(this, void 0, void 0, function* () {
cloud_runner_logger_1.default.log('Starting step 1/4 clone and restore cache)');

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -267,6 +267,7 @@ class CloudRunner {
await this.runCustomJob(this.buildParams.postBuildSteps);
CloudRunnerLogger.logWithTime('Post build steps time');
}
private static async runJobAsEphemeralGitHubRunner(baseImage: any) {
CloudRunnerLogger.log(`Cloud Runner is running in ephemeral GitHub runner mode`);
const installAndStartRunner =
@ -281,6 +282,7 @@ class CloudRunner {
[...this.defaultSecrets],
);
}
private static async runCustomJob(buildSteps) {
CloudRunnerLogger.log(`Cloud Runner is running in custom job mode`);
buildSteps = YAML.parse(buildSteps);
@ -305,31 +307,6 @@ class CloudRunner {
}
}
private static async runEphemeralRegistrationJob(buildSteps) {
buildSteps = YAML.parse(buildSteps);
for (const step of buildSteps) {
const stepSecrets: CloudRunnerSecret[] = step.secrets.map((x) => {
const secret: CloudRunnerSecret = {
ParameterKey: x.name,
EnvironmentVariable: x.name,
ParameterValue: x.value,
};
return secret;
});
await this.CloudRunnerProviderPlatform.runBuildTask(
this.buildGuid,
step['image'],
[
'mkdir actions-runner && cd actions-runner && curl -O -L https://github.com/actions/runner/releases/download/v2.283.1/actions-runner-linux-x64-2.283.1.tar.gz && tar xzf ./actions-runner-linux-x64-2.283.1.tar.gz && ls',
],
`/${buildVolumeFolder}`,
`/${buildVolumeFolder}`,
this.defaultGitShaEnvironmentVariable,
[...this.defaultSecrets, ...stepSecrets],
);
}
}
private static async setupStep() {
CloudRunnerLogger.log('Starting step 1/4 clone and restore cache)');
await this.CloudRunnerProviderPlatform.runBuildTask(