test github groups for logs

pull/310/head
Frostebite 2022-01-03 05:35:14 +00:00
parent 3432cf18d2
commit 888cc3c248
5 changed files with 18 additions and 7 deletions

View File

@ -4,14 +4,21 @@ on:
push: { branches: [main, aws, remote-builder/unified-providers] }
env:
AWS_REGION: eu-west-1
GKE_ZONE: 'us-central1'
GKE_REGION: 'us-central1'
GKE_PROJECT: 'unitykubernetesbuilder'
GKE_CLUSTER: 'unity-builder-cluster'
GCP_LOGGING: true
GCP_PROJECT: unitykubernetesbuilder
GCP_LOG_FILE: ${{ github.workspace }}/cloud-runner-logs.txt
AWS_REGION: eu-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-2
GCP_LOG_FILE: ${{ github.workspace }}/cloud-runner-logs.txt
AWS_BASE_STACK_NAME: game-ci-github-automation
CLOUD_RUNNER_BRANCH: remote-builder/unified-providers
CLOUD_RUNNER_TESTS: true
DEBUG: true
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
jobs:

View File

@ -12,17 +12,17 @@ env:
GKE_REGION: 'us-central1'
GKE_PROJECT: 'unitykubernetesbuilder'
GKE_CLUSTER: 'unity-builder-cluster'
AWS_REGION: eu-west-1
GCP_LOGGING: true
GCP_PROJECT: unitykubernetesbuilder
GCP_LOG_FILE: ${{ github.workspace }}/cloud-runner-logs.txt
AWS_REGION: eu-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-2
GCP_LOG_FILE: ${{ github.workspace }}/cloud-runner-logs.txt
AWS_BASE_STACK_NAME: game-ci-github-automation
CLOUD_RUNNER_BRANCH: remote-builder/unified-providers
CLOUD_RUNNER_TESTS: true
DEBUG: true
GCP_LOGGING: true
GCP_PROJECT: unitykubernetesbuilder
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
jobs:

2
dist/index.js vendored
View File

@ -3100,9 +3100,11 @@ class BuildAutomationWorkflow {
cloud_runner_logger_1.default.logWithTime('Configurable pre build step(s) time');
core.startGroup('setup');
output += yield new setup_step_1.SetupStep().run(new cloud_runner_step_state_1.CloudRunnerStepState('alpine/git', task_parameter_serializer_1.TaskParameterSerializer.readBuildEnvironmentVariables(), cloud_runner_state_1.CloudRunnerState.defaultSecrets));
core.endGroup();
cloud_runner_logger_1.default.logWithTime('Download repository step time');
core.startGroup('build');
output += yield new build_step_1.BuildStep().run(new cloud_runner_step_state_1.CloudRunnerStepState(baseImage, task_parameter_serializer_1.TaskParameterSerializer.readBuildEnvironmentVariables(), cloud_runner_state_1.CloudRunnerState.defaultSecrets));
core.endGroup();
cloud_runner_logger_1.default.logWithTime('Build time');
if (cloud_runner_state_1.CloudRunnerState.buildParams.postBuildSteps !== '') {
output += yield custom_workflow_1.CustomWorkflow.runCustomJob(cloud_runner_state_1.CloudRunnerState.buildParams.postBuildSteps);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -34,6 +34,7 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
CloudRunnerState.defaultSecrets,
),
);
core.endGroup();
CloudRunnerLogger.logWithTime('Download repository step time');
core.startGroup('build');
@ -44,6 +45,7 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
CloudRunnerState.defaultSecrets,
),
);
core.endGroup();
CloudRunnerLogger.logWithTime('Build time');
if (CloudRunnerState.buildParams.postBuildSteps !== '') {